Re: Redirect question

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

 



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

I would expect a GET or other request to the document root for your instance of apache would look for a file named index.html or index.cgi and execute that. Apache has defaults that create a directory listing for the case without an index* file, but I'm pretty sure you can change that name with a directive.  Should it be "application.xxx"?

An index.cgi could look at the environment variables and notice the "application" in the call and treat it specially. A procedure like that would be nearly impossible if there are multiple applications available.

Could you add an extra /application in the DNS server with a CNAME?

-- 

--> From the U S of A, the only socialist country that refuses to admit it. <--

---------------------------------------------------------------------
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