Re: Redirect question

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

 







At 16:46 -0400 5/5/10, John.C.Kennedy@xxxxxxxxxxxxx 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>
[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