8 messages in ru.sysoev.nginxRe: rewrite rules
FromSent OnAttachments
Stefanita rares DumitrescuJan 25, 2008 4:16 am 
Stefanita rares DumitrescuJan 25, 2008 4:21 am 
RoxisJan 25, 2008 4:31 am 
Stefanita rares DumitrescuJan 25, 2008 5:04 am 
Jan ŚlusarczykJan 28, 2008 1:52 pm 
HonDev DeveloperJan 28, 2008 2:50 pm 
Jan ŚlusarczykJan 31, 2008 5:31 am 
BoethiusFeb 5, 2008 2:55 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: rewrite rulesActions...
From:HonDev Developer (deve@public.gmane.org)
Date:Jan 28, 2008 2:50:56 pm
List:ru.sysoev.nginx

I would start with something like this:

location ~*
^.+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ { root /home/vbseo/public_html; rewrite
^/archive/(.*(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ /vbseo.php?vbseourl=$1 last; expires 10d; break; }

location / { root /home/vbseo/public_html; index index.php; if (!-e $request_filename) { rewrite ^(.+)$ /vbseo.php?vbseourl=$1 last; }