I have an Ubuntu 12.10 with Nginx. The ip is 10.0.0.6 to access from other computers on my network.
The default page displays telling me the server is working, but when I create a virtual domain it displays same default page.
here is my file site1.com
Code:
server {
listen 80;
server_name site1.com;
access_log /var/www/site1.com/logs/access.log;
error_log /var/www/site1.com/logs/error.log;
location / {
root /var/www/site1.com/;
index index.html;
}
}
Using this method on a live dedicated machine of mine works fine, but not on my local machine.
I'm thinking it's something to do with the access of useing the ip maybe?
for example I have to access the local as
http://10.0.0.6/site1.com
do you think this has something to do with it?
EDIT: I do have the ln -s link for sites-enabled and I have restarted nginx