-
-
Save gokulnath/8398841 to your computer and use it in GitHub Desktop.
sample nginx_site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'nginx_site' => { | |
'sites' => [ | |
{ | |
'site_name' => 'gokulnath.in', | |
'listen' => '80', | |
'server_name' => 'gokulnath.in', | |
'root' => '/home/vagrant/deploy/gokul', | |
'passenger_ruby' => 'ruby-1.9.3-p194', | |
'passenger_base_uri' => %w(/resume /home), | |
'deny' => ['182.121.111.1', '131.122.111.111'] | |
}, | |
{ | |
'site_name' => 'gokul_2', | |
'listen' => '8000', | |
'server_name' => 'gokulnath2.in', | |
'location' => { | |
'nginx_status' => [ | |
'stub_status on;', | |
'access_log off;', | |
'allow 127.0.0.1;', | |
'deny all;' | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment