nginx.conf ok - but want to redirect numeric IP to site

Stefan Scott lists at
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:

and added this:

    ## Deny access to any host other than (www.)
    server {
         server_name  _;  #default
         return 444;

BEFORE all the other server directives in the nginx.file - and it 

Posted via

More information about the nginx mailing list