Created
May 9, 2012 15:41
-
-
Save coderforhire/2645689 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
| server | |
| { | |
| listen 80; | |
| server_name xml.newground.com; | |
| access_log /var/log/nginx/xml.newground.com.access.log; | |
| error_log /var/log/nginx/xml.newground.com.error.log; | |
| root /var/www/xml/current/public; | |
| index index.php index.html index.htm; | |
| passenger_enabled on; | |
| passenger_root /home/afresta/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11; | |
| passenger_ruby /home/afresta/.rvm/wrappers/ruby-1.9.3-p0/ruby; | |
| # use fastcgi for all php files | |
| location ~ \.php$ | |
| { | |
| fastcgi_pass 127.0.0.1:9000; | |
| fastcgi_index index.php; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| include fastcgi_params; | |
| } | |
| # deny access to apache .htaccess files | |
| location ~ /\.ht | |
| { | |
| deny all; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment