Permalink
Browse files

Tried to get nginx working with WordPress. Did not go well, but savin…

…g for the future.
  • Loading branch information...
1 parent a95a563 commit 9dab47469058cb72e73841549cc98d5c83658478 @ggamel committed Jan 15, 2013
Showing with 6 additions and 5 deletions.
  1. +6 −5 nginx/vhosts/wordpress.conf
@@ -1,14 +1,14 @@
server {
listen 80 default;
- server_name paula.local;
+ server_name *.local;
index index.php;
if ($host ~* "^(.+)+.local$") {
set $site $1;
}
- root /Users/Wynn/sites/$site;
+ root /Users/ggamel/Do/$site;
access_log /var/log/nginx/$host.access.log combined;
error_log /var/log/nginx/$host.error.log crit;
@@ -35,7 +35,7 @@ server {
}
location / {
- rewrite ^/?post/([0-9]+).*$ http://thechangelog.local/$1;
+ rewrite ^/?post/([0-9]+).*$ http://axes.local/$1;
try_files $uri $uri/ @rewrite;
if (!-e $request_filename) {
rewrite ^.+?(/.*.php)$ $1 last;
@@ -48,6 +48,7 @@ server {
}
}
+
location @rewrite {
#rewrite ^/(.*)$ /index.php?q=$1;
}
@@ -61,8 +62,8 @@ server {
}
# Fighting with ImageCache? This little gem is amazing.
- location ~ ^/sites/.*/files/styles/ {
+ location ~ ^/Do/.*/files/styles/ {
try_files $uri $uri/ @rewrite;
}
-}
+}

0 comments on commit 9dab474

Please sign in to comment.