EDIT>>>>>>> sorry. forgot to add server to the config , i.e
server {
listen 80;
server_name
www.example.com example.com;
access_log /srv/www/example.com/logs/access.log;
error_log /srv/www/example.com/logs/error.log;
location / {
root /srv/www/example.com/public_html;
index index.html index.htm;
}
.........................................................................................
Can anyone help.trying to follow these instructions.
http://library.linode.com/lemp-guides/debian-6-squeeze
I have created directory structure srv/www/mysite.org.uk/public_html and logs placed a test index.html page in public html. I have created a page titled mysite.org in sites available and followed these instructions
"ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled
/etc/init.d/nginx restart" i changed example.com of course.
The guides is referring to directories such as include / /opt/nginx-sites.conf;
which do not exist. Probably due to installing using apt get.
/opt/etc/nginx/sites-enabled/ this makes sense since the structure exists within etc but this
/opt/nginx-sites.conf does not make sense as nothing exists under opt and I cannot see any nginx-sites.conf file anywhere.
when i restart nginx
Restarting nginx: nginxnginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored
...........................................
Then, depending on the size and nature of your deployment, place your virtual host configurations either directly in the /opt/nginx-sites.conf file or include statements for server-specific configuration files in the nginx-sites.file. For more information regarding nginx configuration options, consider our overview of nginx configuration.
http://library.linode.com/web-servers/n ... tion/basic
mentions
/opt/nginx/conf/nginx.conf.