Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

sites-enabled files are not working

$
0
0
Please help!

HERE'S MY PROBLEM:
nginx is serving an index.html file from /usr/share/nginx/html, rather than from the /usr/share/nginx/html2 which is indicated in my sites-enabled/www virutal host file. My concern is that my sites-enabled/www file is not active.

in my nginx.conf http block, I have the following:

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;

in my /etc/nginx/sites-enabled/www file, I have the following:

listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
server_name *.my_host_name.com;
root /usr/share/nginx/html2;
index index.html index.htm

any ideas why nginx is still serving up an index.html file from the /usr/share/nginx/html folder rather than the /usr/share/nginx/html2 folder as indicated in the settings above?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>