我使用phusion乘客安装程序安装了nginx,并在以下位置安装了nginx:
/opt/nginx/
它在/opt/nginx/confg/nginx.conf中有一个configuration文件,似乎没有随站点一起提供和启用文件夹。
我不喜欢nginx.conf文件如何变得如此之大,是否有可能打破文件,使每个网站都有自己的configuration文件?
在我的nginx.conf [debian,老nginx 0.6.32]我有:
http { .... include /etc/nginx/sites-enabled/*; }
启用网站的[或符号链接]中的文件包含:
server { access_log /var/log/nginx/whatever-access.log; location / { root /var/www/whatever; index index.html index.htm; } }
如果需要更多。