Skip to content

Instantly share code, notes, and snippets.

@pedrofaria
Created October 13, 2010 20:43
Show Gist options
  • Select an option

  • Save pedrofaria/624866 to your computer and use it in GitHub Desktop.

Select an option

Save pedrofaria/624866 to your computer and use it in GitHub Desktop.
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