The nginx.conf is very different in nginx version 1.11 compared to 1.6. Ownership is done by nginx instead of www-data, there is no include path for the sites-enabled directory and the new nginx.con file is around 20 lines of code.
With nginx 1.11, do I need to set an include of the web path or is this designed to pull a different nginx.conf from each website directory? Do I need to replace this nginx.conf with the sample config on the nginx website?
It should have an include /etc/nginx/conf.d/*.conf;
or something similar, so you should put your config in that directory. ie /etc/nginx/conf.d/www.example.com.conf
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.