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

技术分享 2016-10-04

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

Listen 810

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

<Directory "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网站.

评论 (0)

发表评论

最多500字符

验证码

暂无评论

成为第一个评论的人吧!