httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John.C.Kenn...@LDHEnergy.com
Subject Re: [users@httpd] Redirect question
Date Wed, 05 May 2010 21:28:09 GMT
At 16:46 -0400 5/5/10, John.C.Kennedy@LDHEnergy.com wrote:
I have an application running on a server at:
http://server/application

My user wants me to set up so that
http://application
will redirect to:
http://server/application

I have DNS set up and now if I go to:
http://application/application
the correct page is displayed. I just can not seem to get
http://application
to go to the right place.

I have tried to use Redirect:
Redirect permanent / http://server/application
but I then get:
Firefox has detected that the server is redirecting the request for this 
address in a way that will never complete.

What am I doing wrong?

To me it looks as though you would have to own the domain name 
"application" with an appropriate .com, .net or the like before any 
browser would recognize your Location HTTP header. I'd like to see that 
header as it appears after your Redirect is processed. If this is all in a 
local domain does your local DNS - bind?? - do the right thing?

But then perhaps I'm about to learn something I don't now about apache.



DNS resolves the "server" and "application" hostnames correctly. If I go 
to:
http://application/application
I get the correct page. What I want is for
http://application
to redirect me to
http://application/application


I have also tried the following VirtualHost config with the same results:

NameVirtualHost XXX.XXX.XXX.XXX

<VirtualHost XXX.XXX.XXX.XXX>
    ServerName application.example.com
    ServerAlias *
    Redirect permanent / http://servert/application
</VirtualHost>
Mime
View raw message