Is this possible

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_pass         http://127.0.0.1:8080/;
        proxy_redirect     off;

thanks,

Frank

On Thu, Jun 19, 2008 at 12:23:33PM -0400, [email protected] wrote:

    location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html)$ {
  •     location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html)$ {
    
  •     location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {
    
  •         root              /path/to/files;
    
        access_log        off;
        expires           30d;
    }
location / {
        proxy_pass         http://127.0.0.1:8080/;
        proxy_redirect     off;

Yes.