码迷,mamicode.com
首页 > Web开发 > 详细

nginx - PHP

时间:2019-10-22 15:12:41      阅读:107      评论:0      收藏:0      [点我收藏+]

标签:cgi   director   pre   ide   虚拟   accept   war   direct   doc   

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

标签:cgi   director   pre   ide   虚拟   accept   war   direct   doc   

原文地址:https://www.cnblogs.com/cap-rq/p/11719559.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!