Skip to content

Instantly share code, notes, and snippets.

@luandevpro
Last active March 31, 2018 03:27
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 luandevpro/197e9822b89fa003e348c9fcdf0eaf5c to your computer and use it in GitHub Desktop.
Save luandevpro/197e9822b89fa003e348c9fcdf0eaf5c to your computer and use it in GitHub Desktop.
WordPress
server {
listen 80 default_server;
listen [::]:80 default_server;
............
............
#
index index.php index.html index.htm;
# pass PHP scripts to FastCGI server
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment