SSI goes to backend
Igor Sysoev
is at rambler-co.ru
Fri Sep 4 12:42:29 MSD 2009
On Fri, Sep 04, 2009 at 01:55:50AM +0300, zepolen wrote:
> In the html for the backend app server is: <!--# include
> virtual="http://www.domain.com/ssi/base.html" -->
>
> Going to directly to http://www.domain.com/ssi/base.html in a browser
> shows the file ok
>
> However if it gets loaded as ssi, the request seems to go to the
> backend (which says 404) - instead of being served from nginx.
>
> Why is this?
>
> Nginx config:
>
> location / {
> ssi on;
> proxy_set_header Host $http_host;
> proxy_pass http://backend;
> proxy_redirect off;
> }
> location /ssi {
> alias /var/www/ssi;
> }
- <!--# include virtual="http://www.domain.com/ssi/base.html" -->
+ <!--# include virtual="/ssi/base.html" -->
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list