Hi all,
I’m trying out nginx. I would like to use it to perform the following:
- Retrieve a page from a server1 which includes some SSI commands
- Process the SSI commands, eventually including content from server2
- Return the resultant page
I’ve got SSI working when using a local file, but not when using the
page
from a server1 using proxy_pass.
Here’s my config I’m using to try to achieve the above.
events {
worker_connections 1024;
}
http {
server {
listen 80;
server_name localhost;
location /hello-world.html {
ssi on;
proxy_pass http://tom.office.bla.co.uk:8080/hello-world/;
}
}
}
For testing purposes, I’m using a simple SSI command, as shown in the
output
my browser actually ends up with, which is identical to the content on
server1:
Do I need to use something other than proxy_pass, or is it just not
possible? Thanks!
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,251630,251630#msg-251630