You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Duncan Brannen <db...@st-andrews.ac.uk> on 2004/12/03 14:11:30 UTC
[users@httpd] Apache 2.0.52 SSI include of Mod_Rewrite proxied page
Hi All,
In Apache 1.3 I could have a .shtml page that did
eg.
<!--#include virtual="/news/headlines.html" -->
and a rewite rule on the server
RewriteRule ^/news/(.*)$ http://server2/news/$1 [proxy]
Which would include the file headlines.html from server2.
In Apache2, the server looks for the file locally, ignoring the
ReWrite rule and giving an error, though manually loading
http://server1/news/headlines.html correctly shows the page
from server2.
Is there a way to make Apache2 behave as Apache 1.3 did or do
I have to roll back to Apache 1.3 again?
Cheers,
Duncan
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.0.52 SSI include of Mod_Rewrite
proxied page
Posted by Duncan Brannen <db...@st-andrews.ac.uk>.
PS.
ProxyPass /news/ http://server2/news/
works
At 13:11 03/12/2004, you wrote:
>Hi All,
> In Apache 1.3 I could have a .shtml page that did
>
>eg.
>
><!--#include virtual="/news/headlines.html" -->
>
>and a rewite rule on the server
>
>RewriteRule ^/news/(.*)$ http://server2/news/$1 [proxy]
>
>Which would include the file headlines.html from server2.
>
>In Apache2, the server looks for the file locally, ignoring the
>ReWrite rule and giving an error, though manually loading
>
>http://server1/news/headlines.html correctly shows the page
>from server2.
>
>
>Is there a way to make Apache2 behave as Apache 1.3 did or do
>I have to roll back to Apache 1.3 again?
>
>
>Cheers,
> Duncan
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.0.52 SSI include of Mod_Rewrite proxied
page
Posted by Nick Kew <ni...@webthing.com>.
On Fri, 3 Dec 2004, Duncan Brannen wrote:
>
> <!--#include virtual="/news/headlines.html" -->
>
> and a rewite rule on the server
>
> RewriteRule ^/news/(.*)$ http://server2/news/$1 [proxy]
As an alternative to that, you could use
<!--#include url="http://server2/news/headlines.html"-->
Currently supported in mod_publisher from http://apache.webthing.com/
--
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org