1.在httpd.conf中设置端口并添加如下代码
Listen 80
Listen 8088
NameVirtualHost *:80
<VirtualHost *:80>
ServerName cs.sm
DocumentRoot "E:\hoytai\newSfabric\public"
</VirtualHost>
NameVirtualHost *:8088
<VirtualHost *:8088>
ServerName localhost:8088
DocumentRoot "E:\newSfabric\public"
</VirtualHost>
2.在Vertrigo.conf中添加
<Directory "E:\newSfabric\public">
Options Indexes FollowSymLinks Includes
AllowOverride All
Require all granted
</Directory>
<Directory "E:\hoytai\newSfabric\public">
Options Indexes FollowSymLinks Includes
AllowOverride All
Require all granted
Order Deny,Allow
Deny from all
Allow from all
</Directory>
3.重启apache服务