Skip to content

Instantly share code, notes, and snippets.

@cristiannsc
Last active November 22, 2018 14:01
Show Gist options
  • Select an option

  • Save cristiannsc/1d4ae9267f433a7927076c8bd79ff9e3 to your computer and use it in GitHub Desktop.

Select an option

Save cristiannsc/1d4ae9267f433a7927076c8bd79ff9e3 to your computer and use it in GitHub Desktop.
nginx config meneame
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