Mikael Kermorgant
2006-Sep-08 12:30 UTC
[Fedora-directory-users] ds gateway behind apache proxy
Hello,
I have installed FDS and activated dsgw which listens on a particular
port, let''s say 29154.
I have managed to access it on port 80 by running apache2 on the same
host and setting up mod_proxy in a particular way but it does only
work for some pages.
RewriteRule ^/clients(.*) /directory/clients$1 [R]
<Location /annuaire/>
ProxyPass http://ds.myorg.com:29154/
ProxyPassReverse http://ds.myorg.com:29154/
</Location>
My problem is that there are hard-coded references to this port in the
html files.
For an example, after authentication, I have :
<INPUT TYPE="button" VALUE="Return to Main"
onClick="top.location.href=\''http://ds.myorg.com:29154/clients/dsgw/bin/lang?context=dsgw&file=\''">
Is there a way to configure this ?
Thanks in advance,
--
Mikael Kermorgant
Rob Crittenden
2006-Sep-08 13:21 UTC
Re: [Fedora-directory-users] ds gateway behind apache proxy
Mikael Kermorgant wrote:> Hello, > > I have installed FDS and activated dsgw which listens on a particular > port, let''s say 29154. > > I have managed to access it on port 80 by running apache2 on the same > host and setting up mod_proxy in a particular way but it does only > work for some pages. > > RewriteRule ^/clients(.*) /directory/clients$1 [R] > <Location /annuaire/> > ProxyPass http://ds.myorg.com:29154/ > ProxyPassReverse http://ds.myorg.com:29154/ > </Location> > > My problem is that there are hard-coded references to this port in the > html files. > For an example, after authentication, I have : > > <INPUT TYPE="button" VALUE="Return to Main" > onClick="top.location.href=\''http://ds.myorg.com:29154/clients/dsgw/bin/lang?context=dsgw&file=\''"> > > > > Is there a way to configure this ?I would use squid instead of Apache for a reverse proxy. It should automatically fix things up for you. Or you can have Apache re-write the URLs for you. See here for an example: http://www.daveyp.com/blog/index.php/archives/76/ rob