Ok, I've gotten as far as I can. Can someone tell me what is wrong with my rewrite rules?
[code]
server {
listen 174.142.142.92:80;
server_name _ 5pt.us *.5pt.us;
access_log /home/parkerj/public_html/5pt.us/log/access.log;
error_log /home/parkerj/public_html/5pt.us/log/error.log;
# Set this to off if you're hosting more than one site
server_name_in_redirect off;
location / {
try_files $uri $uri/ @wordpress;
root /home/parkerj/public_html/5pt.us/public/;
index index.php index.html;
client_max_body_size 10M;
client_body_buffer_size 128K;
#rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1;
rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
if (!-e $request_filename) {
rewrite ^.+/?(/wp-.*) $1 last;
rewrite ^.+/?(/.*\.php)$ $1 last;
rewrite ^ /index.php last;
#rewrite ^(.+)$ /index.php?q=$1 last;
}
}
location @wordpress {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /home/parkerj/public_html/5pt.us/public/$fastcgi_script_name;
include /usr/local/nginx/conf/fastcgi_params;
fastcgi_param SCRIPT_NAME /index.php;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$
#location ~ wp\-.*\.php|wp\-admin|\.php$
{
try_files $uri @wordpress;
#rewrite ^/.*(/wp-.*/.*.php)$ $1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /usr/local/nginx/conf/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /home/parkerj/public_html/5pt.us/public/$fastcgi_script_name;
}
}
[/code]
Joshua Parker
http://www.7mediaws.org/