Display configuration at runtime?

michael_teter nginx-forum at nginx.us
Mon Apr 16 22:02:45 UTC 2012


Thanks for the quick response.  My error log shows nothing, but my
access log does show the visit.

Here's the relevant part of my config:


   server {
      listen      80;
      server_name www.ourname.com;
      rewrite     ^(.*)  https://$server_name$1 permanent;
   }
   server {
      listen 443;
      server_name www.ourname.com;
      #try_files $uri /maintenance.html @passenger;
      root /home/michael/ourname/public;

      # MT added 20120416
      error_page 503 /maintenance.html;
      if (-f $document_root/../tmp/stop.txt) {
        set $maintenance 1;
      }

      if ($maintenance) {
        return 503;
      }

      passenger_enabled on;
      #rails_env development;
      rails_env production;
      location @passenger {
        passenger_enabled on;
        root /home/michael/ourname/public;
      }

      ssl on;
      ssl_certificate /home/michael/ssl_keys/ourname.com_ssl.crt;
      ssl_certificate_key /home/michael/ssl_keys/Cert1.key;
      #return 403;
   }

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,225392,225395#msg-225395



More information about the nginx mailing list