[H-GEN] Apache and redirects

Michael Anthon mca at tams.com.au
Mon Dec 13 22:59:37 EST 1999


[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics.  Please observe the list's charter.          ]

I am trying to figure out why Apache is doing a certain thing that does not
make sense to me.  I have NetSaint on a Linux server and if I access it with
the address http://10.10.10.2/netsaint , then all is fine and dandy.  I also
have another page on the same server that I set up with a bunch of links to
local management pages, one of which is <A
href="http://10.10.10.2/netsaint">NetSaint Network Monitor</A>.

This does work, however, when I click this link, Apache sends a "301
Permanently Moved" response with a redirect "Location :
http://www.tams.com.au/netsaint".  While this is not a major drama, I would
prefer it did not do it since this means the request must go via the proxy
and I would rather it go direct (I can't go direct to www.tams.com.au since
it is on the other side of a firewall and uses a portfw to access the
internal server at 10.10.10.2)

The Apache server does have the "ServerName www.tams.com.au" directive, but
I don't understand why it does a redirect with the second situation.  The
only difference between the 2 requests is that one contains a "Referer:
http://10.10.10.2/my_menu_page.html" header.

What am I missing ?

Cheers
Michael Anthon

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list