<div dir="ltr">Hello<br><br>I would like to run a few virtual sites on one IP on nginx 0.6.32 compiled from source as Debian package on Debian Etch.<br><br>My nginx.conf contents are:<br><br>user www-data;<br>worker_processes 1;<br>
<br>error_log /var/log/nginx/error.log;<br>pid /var/run/nginx.pid;<br><br>events {<br> worker_connections 1024;<br>}<br><br>http {<br> include /etc/nginx/mime.types;<br> default_type application/octet-stream;<br>
<br> access_log /var/log/nginx/access.log;<br><br> sendfile on;<br> #tcp_nopush on;<br><br> #keepalive_timeout 0;<br> keepalive_timeout 65;<br> tcp_nodelay on;<br><br> gzip on;<br>
<br> server_tokens off;<br><br> include /etc/nginx/conf.d/*.conf;<br> include /etc/nginx/sites-enabled/*;<br>}<br><br>My virtual site file (<a href="http://www.bona-a.com">www.bona-a.com</a>) contents are:<br>
<br>server {<br> listen 80;<br> server_name <a href="http://www.bona-a.com">www.bona-a.com</a>;<br><br> access_log /var/log/nginx/www.bona-a.com.access.log;<br><br> location / {<br> root /var/www/<a href="http://www.bona-a.com">www.bona-a.com</a>;<br>
index default.html default.htm index.html index.htm;<br> }<br><br> # pass the PHP scripts to FastCGI server listening on <a href="http://127.0.0.1:9000">127.0.0.1:9000</a><br> #<br> #location ~ \.php$ {<br>
#fastcgi_pass <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;<br> #fastcgi_index index.php;<br> #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;<br> #includefastcgi_params;<br>
#}<br>}<br><br>If I name a file or symbolic link in /etc/nginx/sites-enabled/, that holds the information for a virtual site, <a href="http://www.bona-a.com">www.bona-a.com</a>, this site becomes a catch-all site, answering all requests that go to the same ip and do not match any of the sites defined in other files in /etc/nginx/sites-enabled/.<br>
<br>Same is if I replace -a with - followed by any letter between b and d (including). If I name the file <a href="http://www.bona-e.com">www.bona-e.com</a> or <a href="http://www.bona.com">www.bona.com</a>, everything works fine and i get 403 Forbidden as a reply.<br>
<br>What am I doing wrong?<br><br>Regards,<br><br>Gregor<br></div>