Created
July 31, 2013 16:37
-
-
Save cmaxw/6123716 to your computer and use it in GitHub Desktop.
nginx config (that doesn't work)
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
server { | |
server_name rubyrogues.com www.rubyrogues.com rubyrogues.bluebox-placeholder.com; | |
access_log /var/log/nginx/rubyrogues.com.access.log; | |
error_log /var/log/nginx/rubyrogues.com.error.log; | |
root /var/www/rubyrogues; | |
passenger_enabled on; | |
passenger_base_uri /parley; | |
rails_env production; | |
location / { | |
index index.html index.htm index.php; | |
try_files $uri $uri/ /index.php; | |
} | |
location ~ \.php$ { | |
include /opt/nginx/fastcgi_params; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME /var/www/rubyrogues$fastcgi_script_name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment