

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
20 messages in ru.sysoev.nginxRe: Tricky Rewrite rules.| From | Sent On | Attachments |
|---|---|---|
| Gustavo Barrón | Nov 18, 2007 8:53 am | |
| HonDev Developer | Nov 18, 2007 4:17 pm | |
| HonDev Developer | Nov 18, 2007 4:44 pm | |
| HonDev Developer | Nov 18, 2007 5:37 pm | |
| Gustavo Barrón | Nov 18, 2007 10:30 pm | |
| Hone | Nov 20, 2007 12:15 pm | |
| Hone | Nov 20, 2007 1:30 pm | |
| Gustavo Barrón | Nov 20, 2007 2:15 pm | |
| Hone | Nov 20, 2007 8:29 pm | |
| Hone | Nov 20, 2007 8:46 pm | |
| Hone | Nov 21, 2007 6:01 pm | |
| Gustavo Barrón | Nov 21, 2007 6:50 pm | |
| HonDev Developer | Nov 22, 2007 3:46 am | |
| HonDev Developer | Nov 22, 2007 4:05 am | |
| HonDev Developer | Nov 22, 2007 4:23 am | |
| HonDev Developer | Nov 22, 2007 3:17 pm | |
| HonDev Developer | Nov 26, 2007 2:41 am | |
| HonDev Developer | Nov 26, 2007 2:44 am | |
| HonDev Developer | Apr 24, 2008 12:26 am | |
| HonDev Developer | Apr 24, 2008 1:41 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: Tricky Rewrite rules. | Actions... |
|---|---|---|
| From: | HonDev Developer (deve...@public.gmane.org) | |
| Date: | Nov 26, 2007 2:41:11 am | |
| List: | ru.sysoev.nginx | |
This seems promising - give it a try.
server { listen 80; server_name yourmublogs.com *.yourmublogs.com;
location / { root /home/yourmublogs/public_html; index index.html index.htm index.php; rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1;
if (!-e $request_filename) { rewrite ^.+?(/wp-.*) $1 last; rewrite ^.+?(/.*\.php)$ $1 last;
}
if ($query_string !~ ".*s=.*") { rewrite ^(.*) /wp-content/cache/supercache/$http_host/$1index.html; }
if ($http_cookie !~ "^.*comment_author_.*$" ) { rewrite ^(.*) /wp-content/cache/supercache/$http_host/$1index.html; }
if ($http_cookie !~ "^.*wordpressuser.*$" ) { rewrite ^(.*) /wp-content/cache/supercache/$http_host/$1index.html; }
if ($http_cookie !~ "^.*wp-postpass_.*$" ) { rewrite ^(.*) /wp-content/cache/supercache/$http_host/$1index.html break; }
error_page 404 = @tricky; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; }
location @tricky { rewrite ^ /index.php last; fastcgi_pass 127.0.0.1:8095; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /home/yourmublogs/public_html$fastcgi_script_name; include /usr/local/nginx/conf/fastcgi_params; }
location ~ \.php$ { fastcgi_pass 127.0.0.1:8095; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /home/yourmublogs/public_html$fastcgi_script_name; include /usr/local/nginx/conf/fastcgi_params; } }







