[5053] in WWW Security List Archive
WWW virtual host or multihome httpd
daemon@ATHENA.MIT.EDU (chen changxin)
Sun Apr 13 13:02:35 1997
Date: Sun, 13 Apr 1997 22:10:36 +0900 (CDT)
From: chen changxin <chencx@linux1.fjinfo.sti.ac.cn>
To: www-security@ns2.rutgers.edu
Errors-To: owner-www-security@ns2.rutgers.edu
Hi, everyone,
Had anyone help me to setup the virtual host or multihome httpd?
I had NCSA httpd 1.5a and linux1.2.13 kernel or Sorlaris. And there is
one IP and two DNS ( www.chencx.co.cn , vr.chencx.co.cn) owned by the
httpd host. I want to setup one multihome httpd host. That is, when users
connect to httpd server with http://www.chencx.co.cn , automatic connect
to one "DocumentRoot", and the others connect the host with
http://vr.chencx.co.cn and connect to the other "DocumentRoot".
I had configurated the /usr/local/etc/httpd/conf/httpd.conf and added
the following sentence to setup virtual host, but can't work well. Can
somebody help me conclude the reasons? Thanks...
<UirtualHost 127.0.0.1 Required>
ServerName www.chencx.co.cn
DocumentRoot /usr/local/etc/httpd/htdocs/
</VirtualHost>
<VirtualHost 127.0.0.1 Required>
ServerName vr.chencx.co.cn
DocumentRoot /usr/local/etc/httpd/htdocs/vr
<SRMOptions>
DocumentRoot /usr/local/etc/httpd/htdocs/vr
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-vr/
AddType application/x-httpd-cgi .cgi
</SRMOptions>
</VirtualHost>
================================================================
Jacks chen
FUJIAN INSTITUTE OF SCI&TECH INFORMATION
11HUDONG RD. FUZHOU, FUJIAN, CHINA
EMAIL:chencx@fjinfo.sti.ac.cn
TEL: 86-591-7831624
URL: http://www.fjinfo.sti.ac.cn/chencx
================================================================