Created
August 17, 2015 18:47
-
-
Save sebolio/b06bd53898b3001cce82 to your computer and use it in GitHub Desktop.
configuracion nginx server interno global
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 { | |
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