Skip to content

Instantly share code, notes, and snippets.

@wilxsv
Created August 23, 2018 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilxsv/a43f1be9fbef468ad86f261574a6391e to your computer and use it in GitHub Desktop.
Save wilxsv/a43f1be9fbef468ad86f261574a6391e to your computer and use it in GitHub Desktop.
wp-nginx.conf
server {
listen 80 ;
listen [::]:80 ;
root /home/wilx/Documentos/seguimiento-desaparecidos/sources/nightly;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ /\. {
deny all;
}
location ~* /(?:uploads|files)/.*\.php$ {
deny all;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
index index.php index.html index.htm;
server_name alerta.wvides.info;
location / {
try_files $uri $uri/ /index.php?$args;#try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
error_log /var/log/nginx/error.log;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment