Last active
November 22, 2018 14:01
-
-
Save cristiannsc/1d4ae9267f433a7927076c8bd79ff9e3 to your computer and use it in GitHub Desktop.
nginx config meneame
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; ## listen for ipv4; this line is default and implied | |
| listen [::]:80 default ipv6only=on; ## listen for ipv6 | |
| #Apuntar a donde está el codigo (descomentar linea siguiente) | |
| #root /path/to/meneame/www; | |
| index index.php index.html index.htm; | |
| # Make site accessible from http://localhost/ | |
| server_name localhost; | |
| rewrite /v_\d+/(.+)$ /$1 last; | |
| location / { | |
| try_files $uri /dispatcher.php$uri?$args; | |
| } | |
| location /doc/ { | |
| alias /usr/share/doc/; | |
| autoindex on; | |
| allow 127.0.0.1; | |
| deny all; | |
| } | |
| error_page 404 = /ooops.php; | |
| location ~ \.php { | |
| include php_fastcgi; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment