Created
April 11, 2012 15:35
-
-
Save coderforhire/2360076 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| passenger_root /home/test/.rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11; | |
| passenger_ruby /home/test/.rvm/wrappers/ruby-1.9.3-p125/ruby; | |
| include mime.types; | |
| default_type application/octet-stream; | |
| #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
| # '$status $body_bytes_sent "$http_referer" ' | |
| # '"$http_user_agent" "$http_x_forwarded_for"'; | |
| #access_log logs/access.log main; | |
| sendfile on; | |
| #tcp_nopush on; | |
| #keepalive_timeout 0; | |
| keepalive_timeout 65; | |
| #gzip on; | |
| server { | |
| listen 8081; | |
| server_name redacted; | |
| root /var/www/public; # <--- be sure to point to 'public'! | |
| passenger_enabled on; | |
| rails_spawn_method smart; | |
| rails_env production; | |
| #charset koi8-r; | |
| #access_log logs/host.access.log main; | |
| location / { | |
| root /var/www/public; | |
| index index.html index.htm; | |
| } | |
| #error_page 404 /404.html; | |
| # redirect server error pages to the static page /50x.html | |
| # | |
| error_page 500 502 503 504 /50x.html; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment