2014-10-14

Ok, so admittedly this may be a somewhat newbish question - I'm not sure if I'm just missing one key point or something but here goes.

So i'm working on getting NGINX configured on a server and I've been able to get all of my files into /usr/local/nginx/html/ .. I've also created an nginx.conf file in /usr/local/nginx/conf. All it contains is:

I've been using /usr/local/ because that's the only thing I have permissions to write in. When I go to look at the site, I still get the NGINX index.html page with the message:

This is the default index.html page that is distributed with nginx on EPEL. It is located in /usr/share/nginx/html.

You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf.

I guess my question is, how can I configure my nginx.conf file correctly so that it uses that conf file and pulls from the correction location for the site files?

Show more