Apologies, my previous post had a typo as I had been trying a few things out. This is getting daft ,so lets run it through from the top...
 
Install freeVSD.
Create a virtual server.
Add an ipalias to this virtual server using the 'vsdadm vs_addaliasip...' command.
Bevs into your virtual server as root.
Duplicate the existing demonstration document root:
 
cp -R /home/httpd/docs /home/httpd/docs2
 
Modify the content of /home/httpd/docs2/index.html so you can differentiate it from the default web page on the other ip address.
Make sure your permissions are correct...
 
chown admin.admin /home/httpd/docs2
 
Set up the following in /etc/rc:
 
# HTTP redirect:
vsdredirect ${IP_ADDR}:80:8080
vsdredirect 62.146.42.18:80:8080
# HTTPS redirect:
vsdredirect ${IP_ADDR}:443:8443
vsdredirect 62.146.42.18:443:8443
 
Set up the following in /etc/httpd/conf/httpd.conf:
 
Port 8080
Listen 62.146.42.18:8080
Listen 62.146.42.25:8080
<IfDefine SSL>
Listen 62.146.42.18:8443
Listen 62.146.42.25:8443
</IfDefine>
 
Also append the following to /etc/httpd/conf/httpd.conf:
 
<VirtualHost 62.146.42.25>
ServerName 62.146.42.25
DocumentRoot /home/httpd/docs2
</VirtualHost>
 
Exit your virtual server, do a vsboot --restart and you should be away....
 
That should sort it from the freeVSD point of view. Any other problems you have are likely to be Apache related so check Apache.org before raising them on this list....
 
Good luck.
 
Tim
 
 
 
 -----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nikolaus Franz
Sent: 20 June 2001 12:30
To: [EMAIL PROTECTED]
Subject: Re: how to add an ip based VirtualHost to a VIRTUAL SERVER?????

hello,
 
i change / add
 
Port 80          (.....before 8080)
Listen 62.146.42.18:8080
Listen 62.146.42.25:8080
<IfDefine SSL>
Listen 62.146.42.18:8443
</IfDefine>
 
 
<VirtualHost 62.146.42.25:8080>
ServerName 62.146.42.25
DocumentRoot /www/vhtdocs/medverzeichnis
<Location /www/vhtdocs/medverzeichnis>
</Location>
</VirtualHost>
 
then it works(with the right homedirectory) when i point in browser to 62.146.42.25:8080 (but without 8080 nothing happens)
 
when i add in /etc/rc the line vsdredirect 62.146.42.25:80:8080
then it works in browser with only the ip (no 8080)-----BUT with the wrong homedirectory /home/httpd/docs and not www/vhtdocs/medverzeichnis,
 
i am really confused..
 
greeting niko
 
 

----- Original Message -----
From: Tim Sellar
Sent: Tuesday, June 19, 2001 7:40 PM
Subject: RE: how to add an ip based VirtualHost to a VIRTUAL SERVER?????

Have you got entries like this in /etc/httpd/conf/httpd.conf for both your ip addresses?
 
Port 80
Listen 62.8.10.7:8080
<IfDefine SSL>
Listen 62.8.10.7:8443
</IfDefine>
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nikolaus Franz
Sent: 18 June 2001 14:56
To: [EMAIL PROTECTED]
Subject: Re: how to add an ip based VirtualHost to a VIRTUAL SERVER?????

yes telnet point to the right VirtualServer!
----- Original Message -----
From: Tim Sellar
Sent: Monday, June 18, 2001 3:52 PM
Subject: RE: how to add an ip based VirtualHost to a VIRTUAL SERVER?????

When you telnet to the address 62.146.42.25 do you correctly connect to your virtual server?
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nikolaus Franz
Sent: 18 June 2001 09:58
To: [EMAIL PROTECTED]
Subject: Re: how to add an ip based VirtualHost to a VIRTUAL SERVER?????

it dont work, please have a look to ifconfig and route results.
 
this is the result from ifconfig:
 
eth0:2     Linkverkapselung:Ethernet  HWaddr 00:01:02:20:FE:AB 
          inet addr:62.146.42.25  Bcast:62.255.255.255  Maske:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Unterbrechung:9 Basisadresse:0x2400
 
this is the result of route:
 
Kernel IP Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
62.146.42.25    62.146.42.25    255.255.255.255 UGH   0      0        0 eth0
 
i am not sure if this is correct, if not please send how to correct.
 
many thanks
niko
 
 
----- Original Message -----
From: Tim Sellar
Sent: Monday, June 18, 2001 10:43 AM
Subject: RE: how to add an ip based VirtualHost to a VIRTUAL SERVER?????

Probably vsdredirect is failing to set up a redirection for your ip-aliases. Try specifying port 8080 in your browser, ie lynx 62.146.42.25:8080 and you should see your website. If you do, there are two solutions. Add a couple more vsdredirect lines into /etc/rc which explicitly specify the new ip address and reboot the vs, or (when we have finally got it sorted) move to RH7.1 and use iptable redirection instead.
 
Tim
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nikolaus Franz
Sent: 18 June 2001 00:34
To: [EMAIL PROTECTED]
Subject: how to add an ip based VirtualHost to a VIRTUAL SERVER?????

hi,
i add an virtual ip to the network device ......eth0:4
i add with..... vsdadm vs_addipalias the IP to a VIRTUAL SERVER
i config the httpd.conf file:
 
<VirtualHost 62.146.42.25>
ServerName medverzeichnis.de
DocumentRoot /www/vhtdocs/medverzeichnis
<Location /www/vhtdocs/medverzeichnis>
</Location>
</VirtualHost>
 
but i get no connection via browser, ....what is wrong????
 
thank you
niko

Reply via email to