URI rewrite with port number
microchip
nginx-forum at nginx.us
Wed Dec 22 20:43:56 MSK 2010
hmm, it does not seem to work here. This is what I have so far, but when
I add www at the beginning of the hostname, it can't find it. I should
note that I'm using a hostname from DynDNS but I doubt that's an issue
since I have used lighttpd in the past and it successfully rewrites
server {
listen *:8080 default_server;
server_name _;
return 444;
}
server {
server_name xxx.xxx.xxx;
listen *:8080 rcvbuf=64k backlog=128;
limit_conn gulag 5;
charset utf-8;
access_log /var/log/nginx/xxx.access.log;
root /srv/www/htdocs/xxx.xxx.xxx;
location / {
index index.php;
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,159859,160481#msg-160481
More information about the nginx
mailing list