Skip to content

Instantly share code, notes, and snippets.

@katpadi
Created July 7, 2014 14:17

Revisions

  1. katpadi created this gist Jul 7, 2014.
    28 changes: 28 additions & 0 deletions WPxNGINX
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    server {
    server_name blog.katpadi.ph www.blog.katpadi.ph;

    access_log /var/log/nginx/katpadi.ph.access.log;
    error_log /var/log/nginx/katpadi.ph.error.log;

    root /var/www;
    index index.php;

    location / {
    try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
    try_files $uri =404;
    include fastcgi_params;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    }
    }

    server {
    listen 80;
    server_name katpadi.ph www.katpadi.ph;
    root /var/katpadi;
    location / {
    root /var/katpadi;
    }
    }