Hi!请登陆

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

2020-10-27 54 10/27

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

Listen 810
<VirtualHost 192.168.1.100:810>
    ServerAdmin <a href="mailto:[email protected]">[email protected]</a>
    ServerName 192.168.1.100:810
    DocumentRoot E:phphtdocsyingkekuaile8tuan
</VirtualHost>
<Directory "E:phphtdocsyingkekuaile8tuan">
    Options Indexes FollowSymLinks
    AllowOverride all
    Order Deny,Allow
    Deny from all
    Allow from all
</Directory>

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

Tag:

相关推荐