How to rewrite this correctly?

Glen Lumanau glen at lumanau.web.id
Thu Jan 29 05:52:36 MSK 2009


Hello!

 

I have a directory images/stories (using joomla)

I need to rewrite this into my other subdomains

 

Here's what I already set and works. But not as I expected

        location /images/stories {

          rewrite ^(.*)$ http://static.mydomain.com$1 redirect;

        }

 

When it's accessed by users, it will redirect me to
http://static.mydomain.com/images/stories

 

How can I rewrite it into http://static.mydomain.com/files/images ?

 

Thank's a lot before

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090129/ef2d7410/attachment.html>


More information about the nginx mailing list