我尝试谷歌搜索,但没有成功
我正在使用debian + nginx
在配置中:
root / var / www / html;
表示
domain.com/* 将显示/ var / www / html / *
中的所有内容
我有另一个文件夹
/ var / www / download / *
应该可以通过
到达domain.com/download / *
我该怎么做?
server {
listen 80 default_server;
listen [::]:80 default_server;
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name domain.com;
location / {
#try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_intercept_errors on;
fastcgi_pass php;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
}
location ~ /\.ht {
deny all;
}
}