Nginx proxying to Apache: what about mod_rewrite?
illarra
nginx-forum at nginx.us
Wed Sep 30 22:16:59 MSD 2009
By the way, this is a bigger snippet of my nginx.conf file, showing how I'm dealing with statics.
I just need to connect properly nginx and Apache, as the statics are server via another domain...
server {
listen 0.0.0.0:80;
server_name static.domain.com;
location / {
root /home/web/static/;
expires 40d;
add_header Cache-Control public;
}
}
server {
listen 0.0.0.0:80;
server_name domain.com www.domain.com;
location / {
#proxy to Apache
proxy_pass http://127.0.0.1:8030;
}
}
Thanks!
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,10271,10303#msg-10303
More information about the nginx
mailing list