Skip to content

Instantly share code, notes, and snippets.

@sebolio
Created August 17, 2015 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebolio/b06bd53898b3001cce82 to your computer and use it in GitHub Desktop.
Save sebolio/b06bd53898b3001cce82 to your computer and use it in GitHub Desktop.
configuracion nginx server interno global
server {
root /var/www/cloud;
server_name default;
location / {
#con esto funcionan URLs amigables y formato index.php/asdads/dfdsf
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
# paginas personales al usar colita de chancho (~)
# location ~ ^/~(.+?)(/.*)?$ {
# alias /home/$1/www$2;
# autoindex on;
# }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment