Nginx 配置

Nginx important Path

# nginx conf
/usr/local/nginx/conf
# web root
/home/wwwroot/
# ?
/var/www/

网站转发至二级目录 API留在一级目录

# /usr/local/nginx/conf/<name>
server
    {
        listen 80;
        ...
        root  /home/wwwroot/<name>/public;
        ...
        location / {
            index  index.html index.htm index.php;
            try_files  $uri /index.php;
        }
        ...
    }
jimschenchen

即使苍天陨落,契约必须完成

Share

Leave a Reply