|
发表于 2014-9-10 16:27:19
|
显示全部楼层
APACHE服务器是支持 不同域名,同一个端口的虚拟主机配置,详情请查询APACHE的文档
以下是一个http.conf 的虚拟主机配置,请注意 ServerName 的配置
NameVirtualHost *:8080
<VirtualHost *:8080>
ServerAdmin admin@www.pdsying.com
DocumentRoot D:\MYOA2013\webroot1
ServerName oa.is1.cn:8080
<Directory "D:\MYOA2013\webroot1">
Options Indexes FollowSymLinks
DirectoryIndex index.php
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
NameVirtualHost *:8080
<VirtualHost *:8080>
ServerAdmin admin@www.pdsying.com
DocumentRoot D:\MYOA2013\webroot2
ServerName oa.is2.cn:8080
<Directory "D:\MYOA2013\webroot2">
Options Indexes FollowSymLinks
DirectoryIndex index.php
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
|
|