nginx.conf ok - but want to redirect numeric IP to site
Stefan Scott
lists at ruby-forum.com
Wed Dec 10 17:26:14 MSK 2008
OK, fixed it - but 'listen ... default' wasn't working for some reason -
somehow Drupal was grabbing it anyways and redirecting to the "Install
Drupal" page.
Instead I followed the advice here:
https://calomel.org/nginx.html
and added this:
## Deny access to any host other than (www.)mydomain.com
server {
server_name _; #default
return 444;
}
BEFORE all the other server directives in the nginx.file - and it
worked!
Thanks!
--
Posted via http://www.ruby-forum.com/.
More information about the nginx
mailing list