Is this possible

nginx at nginx at
Thu Jun 19 20:23:33 MSD 2008

Hey Guys,

 Was wondering if anyone knows of possible way of having nginx sit in front
and  server up static requests for images and videos but everything else
proxy to apache.  would this syntax work put the static files first and
then after that forward to apache on 8080?

 # serve static files directly
        location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html)$ {
            access_log        off;
            expires           30d;
    location / {
            proxy_redirect     off;



More information about the nginx mailing list