Re: Riddle Me This

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:

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>


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

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?

(The frame causes ³screen flashing² as users navigate from one webpage to
the next.)

I don't believe this has anything to do with apache? I think what ever you are using to create your site is creating the frames, to allow it to do some of the other effects. Seaside seems to be the culprit on my reading of the source.

Also as I understand it, the proxy location has to be a real alternative site publicly accessible. I get localhost:9090 can not be found when I try to follow links to your own other pages. privacy/legal works because it's not being mapped to loaclhost:9090

My own website is on a local machine with a fixed IP address, but until I had home.lsces.co.uk properly mapped in DNS everybody kept seeing the IP address much like you are getting. I think that you should be using www.goodsexnetwork.com/ in the proxy so that apache returns that rather than the ip address.

I stand to be corrected as I'm still learning myself ;)

--
Lester Caine - G8HFL
-----------------------------
Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://home.lsces.co.uk
MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Firebird - http://www.firebirdsql.org/index.php

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux