Hello, I am new to the forum, and to linux for that matter. I have Ubuntu 14.04 LTS installed on a Dell PowerEdge server that I got for almost nothing. I purchased a domain idi-welding.com and have been messing with nginx for about a month now. I have tried every tutorial I could find, and cannot get any of them to work. I was wondering if anyone could point me to a write up explaining how to set up a single website using nginx. If someone could explain to me how to copy and paste my conf/sites-available/sites-enabled files I will post them, maybe one of the users on this forum could spot what I am doing wrong. It seems like nginx isnt using my website directory. But, when I type in the following command:
cat /etc/nginx/sites-available/* | grep root | sed 's/^[ /t ]*//' | sed '/^\#d'
it says that it is using my home/tj/html directory. The same goes for sites-enabled. But, it is still displaying the welcome to nginx page when I type in my local IP address into the servers browser. I can view that page by typing the servers local IP from any computer on my network. But, when I type in idi-welding.com nothing is displayed. If someone can explain how to copy and paste I can post the contents of the config files, but I can figure out how to copy and paste in the terminal. Any help is greatly appreciated.
cat /etc/nginx/sites-available/* | grep root | sed 's/^[ /t ]*//' | sed '/^\#d'
it says that it is using my home/tj/html directory. The same goes for sites-enabled. But, it is still displaying the welcome to nginx page when I type in my local IP address into the servers browser. I can view that page by typing the servers local IP from any computer on my network. But, when I type in idi-welding.com nothing is displayed. If someone can explain how to copy and paste I can post the contents of the config files, but I can figure out how to copy and paste in the terminal. Any help is greatly appreciated.