'auto'rewrite link to a folder

Pascale Camille lists at ruby-forum.com
Thu Aug 14 14:33:04 UTC 2014

thanks for mini lesson of batch command useful in futur.
hum, i did what you wrote
i rebuilded vps with debian 7
remove apache
just fail to restart nginx editing nginx.conf
so i put in /etc/nginx/sites-available/default

and i am beat confused:

root at www:/# curl -H Host:one.2maxi.com http://localhost/
content of /tmp/www/one/index.html
root at www:/# curl -H Host:nil.2maxi.com http://localhost/
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
root at www:/#

so in web browser i should see
content of /tmp/www/one/index.html

but i have 'this page not available ... DNS lookup failed"

and 2maxi.com/nil or what else gives 2maxi.com

Posted via http://www.ruby-forum.com/.

More information about the nginx mailing list