httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Eng <richard....@rogers.com>
Subject Re: [users@httpd] Riddle Me This
Date Wed, 08 Aug 2007 01:01:03 GMT
Richard Eng wrote:
> Could someone please explain this to me? I�ve configured Apache2 to perform
> reverse proxying on my web application. I�ve added the following to
> httpd.conf:

Just on the off chance this is not a spam/junk mail attempt I will try
and help you.

> 
> LoadModule  proxy_module  /usr/lib/apache2/modules/mod_proxy.so
> LoadModule  proxy_http_module  /usr/lib/apache2/modules/mod_proxy_http.so
> LoadModule  rewrite_module  /usr/lib/apache2/modules/mod_rewrite.so
> 
> NameVirtualHost *
> <VirtualHost *>
> RewriteEngine     on
> ProxyRequests     off
> DocumentRoot      /var/www
> ProxyPass  /goodsexnetwork  http://localhost:9090/seaside/goodsexnetwork
> ProxyPassReverse  /goodsexnetwork
> http://localhost:9090/seaside/goodsexnetwork
> ProxyPass  /goodsexspace  http://localhost:9090/seaside/goodsexspace
> ProxyPassReverse  /goodsexspace  http://localhost:9090/seaside/goodsexspace
> RewriteRule  ^/$  http://localhost:9090/seaside/goodsexnetwork/$1 [P,L]
> </VirtualHost>
> 
> 
> But if you visit:
> http://www.goodsexnetwork.com/
> 
> ...you will find that the website is now couched within some kind of frame.
> Here�s the �View Source� result:
> 
> <FRAMESET ROWS="*" TITLE="goodsexnetwork.com"><FRAME NAME="top"
> SRC="http://74.102.141.248/goodsexnetwork/"
> TITLE="goodsexnetwork.com"><NOFRAMES><P>Visit <A
> HREF="http://74.102.141.248/goodsexnetwork/">http://74.102.141.248/goodsexne
> twork/</A></NOFRAMES></FRAMESET>

[SNIP]
)
> 
> This frame is causing me problems. Why has Apache done this (inserted a
> frame into the situation)? And is there a way to prevent the use of the
> frame?
> 

>  From what you have posted above Apache should will not be doing that to
> you pages.  You have mod_proxy_html loaded. Are you using it elsewhere
> on your server? As the config snippet above certainly isn't.

You mean mod_proxy_http. No, it is not being used elsewhere because I
explicitly loaded it just for this purpose.


 > (Note that I�ve forwarded www.goodsexnetwork.com to
 > 74.102.141.248/goodsexnetwork/.)

> You also say you have forwarded the site to
> 74.102.141.248/goodsexnetwork. How have you done that?

Yes, this is what I've been testing all along.

Regards,
Richard



---------------------------------------------------------------------
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


Mime
View raw message