Last active
November 11, 2016 19:02
-
-
Save DawTaylor/894010a9506777e5580bb24de1fb877f to your computer and use it in GitHub Desktop.
Tentativa de configuração do NGINX
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 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