Is this possible
nginx at fuse969.com
nginx at fuse969.com
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_pass http://127.0.0.1:8080/;
proxy_redirect off;
thanks,
Frank
More information about the nginx
mailing list