Created
October 13, 2010 20:43
-
-
Save pedrofaria/624866 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 { | |
| root /web/pedro/e-pelada.com.br/www; | |
| server_name e-pelada.com.br www.e-pelada.com.br; | |
| access_log /web/pedro/logs/e-pelada_access.log combined buffer=32k; | |
| error_log /web/pedro/logs/e-pelada_error.log error; | |
| include drupal_conf; | |
| include php_conf; | |
| } | |
| server { | |
| root /web/pedro/e-pelada.com.br/dev; | |
| server_name dev.e-pelada.com.br; | |
| index index.php index.html; | |
| access_log /web/pedro/logs/dev-e-pelada_access.log combined buffer=32k; | |
| error_log /web/pedro/logs/dev-e-pelada_error.log error; | |
| location / | |
| { | |
| try_files $uri $uri/ @kohana; | |
| } | |
| # Handles non kohana requests. | |
| 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; | |
| } | |
| location @kohana | |
| { | |
| fastcgi_pass 127.0.0.1:9000; | |
| fastcgi_index index.php; | |
| fastcgi_param SCRIPT_FILENAME $document_root/index.php; | |
| include fastcgi_params; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment