Skip to content

Instantly share code, notes, and snippets.

@jec006
Last active August 29, 2015 14:23
Show Gist options
  • Save jec006/a69fc455ba3b0ad8a7ba to your computer and use it in GitHub Desktop.
Save jec006/a69fc455ba3b0ad8a7ba to your computer and use it in GitHub Desktop.
Wordpress Nginx Configuration
server {
listen 80;
server_name optoro optoro.local;
location / {
root /opt/development/optoro-wp-com/wordpress;
index index.php;
try_files $uri $uri/ /index.php?$args;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
location ~ \.php$ {
root /opt/development/optoro-wp-com/wordpress;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment