|
Home > Archive > Web Servers General Talk > January 2004 > How to redirect on specific url:port on apache server ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to redirect on specific url:port on apache server ?
|
|
| Nicolas 2004-01-19, 6:31 am |
| Hello,
I have 2 instances :
first : mycompany.domain.com on port 80
second : mycompany.domain.com on port 8017
I had on DNS : mis.domain.com who go to mycompany.domain.com on port 80
That I want :
When people use mis.domain.com, i want to redirect automatically on the port 8017
Who can i do it on my apache http server ?
alias ? redirect ? virtual host ?
Is someone can help me by using the syntax ?
Thanks a lot
Niko73
| |
| Jochen Daum 2004-01-19, 6:31 am |
| Hi Nicolas!
On 17 Oct 2003 07:45:29 -0700, niko73@free.fr (Nicolas) wrote:
quote:
>Hello,
>
>
>I have 2 instances :
>first : mycompany.domain.com on port 80
>second : mycompany.domain.com on port 8017
>
>
>I had on DNS : mis.domain.com who go to mycompany.domain.com on port 80
>
>That I want :
>When people use mis.domain.com, i want to redirect automatically on the port 8017
>
>Who can i do it on my apache http server ?
>alias ? redirect ? virtual host ?
I think only possible with mod_proxy.
HTH, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- php scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
| |
| Klaus Johannes Rusch 2004-01-19, 6:31 am |
| Nicolas wrote:
quote:
> I have 2 instances :
> first : mycompany.domain.com on port 80
> second : mycompany.domain.com on port 8017
>
> I had on DNS : mis.domain.com who go to mycompany.domain.com on port 80
>
> That I want :
> When people use mis.domain.com, i want to redirect automatically on the port 8017
>
> Who can i do it on my apache http server ?
> alias ? redirect ? virtual host ?
Define a name-based virtual host, and three virtual hosts: mycompany.domain.com:80,
mycompany.domain.com:8017, mis.domain.com, with the following redirect rule:
<VirtualHost mis.domain.com>
ServerName mis.domain.com
Redirect / http://mycompany.domain.com:8017/
</VirtualHost>
--
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/
| |
| Nicolas 2004-01-19, 6:31 am |
| Klaus Johannes Rusch <KlausRusch@atmedia.net> wrote in message news:<3F939806.72E537E@atmedia.net>...quote:
> Nicolas wrote:
>
>
> Define a name-based virtual host, and three virtual hosts: mycompany.domain.com:80,
> mycompany.domain.com:8017, mis.domain.com, with the following redirect rule:
>
> <VirtualHost mis.domain.com>
> ServerName mis.domain.com
> Redirect / http://mycompany.domain.com:8017/
> </VirtualHost>
==> thanks it works fine now.
thanks for your help Klaus
|
|
|
|
|