nginx - PHP
Posted 我若亦如风
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx - PHP相关的知识,希望对你有一定的参考价值。
nginx 配置转向
location / { proxy_pass http://localhost:8080; try_files $uri $uri/ =404; }
php 虚拟环境
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/erudite_valley/public ServerName localhost #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined #Include conf-available/serve-cgi-bin.conf <Directory /var/www/erudite_valley/public> #Options FollowSymLinks #Options Indexes FollowSymLinks MultiViews #AllowOverride None DirectoryIndex index.html index.htm index.php options FollowSymLinks #DirectoryIndex index.php index.html server.php Allow from all AcceptPathInfo On AllowOverride All </Directory> </VirtualHost>
以上是关于nginx - PHP的主要内容,如果未能解决你的问题,请参考以下文章