location help

rkmr.em at gmail.com rkmr.em at gmail.com
Sat Dec 8 21:16:12 MSK 2007


is there a way i can combine this into one location :


        location ~ ^/[^/]+\.ico$ {
            root   /home/mark/work/pop/static;
        }
        location ~ ^/[^/]+\.xml$ {
            root   /home/mark/work/pop/static;
        }
        location ~ ^/[^/]+\.xml.gz$ {
            root   /home/mark/work/pop/static;
        }
        location ~ ^/[^/]+\.html$ {
            root   /home/mark/work/pop/static;
        }
        location ~ ^/[^/]+\.txt$ {
            root   /home/mark/work/pop/static;
        }
        location ~ ^/[^/]+\.txt.gz$ {
            root   /home/mark/work/pop/static;
        }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20071208/d51f77a9/attachment.html>


More information about the nginx mailing list