I’m on Fedora 16 with nginx installed using yum.
- /etc/nginx/conf.d contains : default.conf ssl.conf virtual.conf
- /etc/init.d/ contains : nginx (to start,stop etc
- /usr/share/nginx contains the default html files.
- /etc/nginx/nginx.conf contaings main config file which is calling
I am trying to understand how nginx will receive desired domain request
will display the html pages.
For that I edited /etc/nginx/conf.d/default.conf and wrote server_name
and then I restarted nginx server.
In browser when I type : test:80 , it shows webpage not available,
showing nginx default test page.
Before moving to a real server I want to understand exactly how nginx
from desired domain name (example.com) and then shows the relevant data.
I have understood the concept of fetching files from proper folder as
the configuration file,
but not able to set desired domain name as a test on localhost.
May anyone let me know what would be the correct configuration ?
Thank You and Warm Regards,
Chetan Arvind Patil,