Mailinglist Archive: opensuse (4393 mails)

< Previous Next >
Re: [SLE] 2 Apache questions: multiple IP to one server, redirect
On Thursday 08 November 2001 6:40 am, Ronald Wiplinger wrote:
> I got two apache questions:
>
>
> 1. I am connected via two different lines and get so two different IP
> addresses from each uplink.
> I can manage to put both IP addresses into the DNS and it will be taken
> randomly, but how can I setup the server listen to both IP addresses with
> all settings?

Use Listen or BindAddress if using virtual hosts:

Listen 192.168.1.10:80
BindAddress 192.168.1.10:80

> 2. I want to get experience with redirect, but I could not get anything
> that works.
>
> E.g., I want to use the domain name:
>
> www1.elmit.com
> to be redirected to www.elmit.com/~ronald
>
> How can I do that?

You can do this with (IP-based) VirtualHost, e.g.:

<VirtualHost 192.168.1.10>
DocumentRoot /home/ronald
ServerName www1.elmit.com
</VirtualHost>

Whatever you do proper DNS configuration is a prerequisite.

M
--
Martin Webster <mwebster@xxxxxxxxxxxx>
Registered Linux User #230322
http://homepage.ntlworld.com/spider-monkey/

< Previous Next >
This Thread
References