APMServer配置多個站點
阿新 • • 發佈:2019-02-04
我這裡是兩臺站點,我用的軟體是APMServer,我在httpd.conf這個檔案中添加了下面兩段,重啟服務就OK了
#APMServ預設虛擬主機
NameVirtualHost www.iup.com:80<VirtualHost www.iup.com:80>
ServerName www.iup.com
DocumentRoot "d:/aizhi"
</VirtualHost>
<Directory "d:/aizhi">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.php index.html default.php index.htm default.htm
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>
<VirtualHost www.360.com:80>
ServerName www.360.com
DocumentRoot "E:/360"
</VirtualHost>
<Directory "E:/360">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.html default.php index.htm default.htm
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>