0
nginx的默认配置文件nginx的重定向到父目录不子drirectory
server {
listen 80;
server_name domain.com;
root /var/www/html/laravel5-1.0/;
index index.php;
location/{
try_files $uri $uri/ /index.php;
proxy_redirect off;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_cache web_cache;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_pass http://localhost:8081/;
}
# CSS and Javascript
location ~* \.(?:css|js)$ {
expires 1y;
access_log off;
add_header Cache-Control "public";
}
}
问题:nginx的指向www
目录不是laravel5-1.0
目录应用程序类型是laravel
laravel5
是公共目录我应用 nginx和apache在同一台虚拟主机上运行 nginx port 80 apache2 8081
请帮我重定向我对laravel5-1.0目录