Apache实现多端口多主目录访问多站点

在httpd.conf最后面加入如下:

1
2
3
4
5
6
7
8
9
10
11
Listen 810

ServerAdmin webmaster@name.com
ServerName 192.168.1.100:810
DocumentRoot E:phphtdocsyingkekuaile8tuan

Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from all

可实现http://192.168.1.100:810访问 E:\php\htdocs\yingkekuaile8tuan\路径下的php网站.