Re: virtual domen

From: Dave Uhring (daveuhring_at_yahoo.com)
Date: 08/29/04


Date: Sat, 28 Aug 2004 18:10:49 -0500

On Sun, 29 Aug 2004 00:44:19 +0200, bulba008 wrote:

> How to in short steps make virtual domen www site on my openbsd
> station?

Append to /var/www/conf/httpd.conf:

<VirtualHost xx.xxx.xx.xxx:80>
DocumentRoot "/var/www/yyyyyyy"
ServerName www.yyyyyyy.com
</VirtualHost>

Then alias a new address to your NIC facing the Internet:

[conf]# cat /etc/hostname.fxp0
inet xx.xxx.xx.x 255.255.255.0 NONE
inet alias xx.xxx.xx.xxx 255.255.255.0 NONE

Next, actually add the aliased IP address

# ifconfig fxp0 inet alias xx.xxx.xx.xxx netmask 255.255.255.0