Skip to content

Instantly share code, notes, and snippets.

@DawTaylor
Last active November 11, 2016 19:02
Show Gist options
  • Save DawTaylor/894010a9506777e5580bb24de1fb877f to your computer and use it in GitHub Desktop.
Save DawTaylor/894010a9506777e5580bb24de1fb877f to your computer and use it in GitHub Desktop.
Tentativa de configuração do NGINX
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/SITE/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name SITE.com.br www.SITE.com.br;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location / {
if (!-e $request_filename){
# Removi o break e troquei o $1 por $request_uri
rewrite ^/(.*) /index.php?q=$request_uri;
}
}
location ~ /\.ht {
deny all;
}
location ~ /.well_known {
allow all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment