Welcome! Log In Create A New Profile

Advanced

sites-enabled files are not working

Posted by mfs7772 
sites-enabled files are not working
August 14, 2013 06:33PM
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?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 174
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready