0%

apache 允许其他主机访问

1.允许其他主机访问
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<VirtualHost *:80>
    <Directory "F:/wamp/www/test">
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all #允许来自所有主机的访问
        Require all granted #2.4以上需要加这一句
    </Directory>
    ServerAdmin 826096331@qq.com
    DocumentRoot "F:/wamp/www/test"
    ServerName www.test.com
    DirectoryIndex index.php index.html
    ServerAlias test.com
    ErrorLog "logs/test.bin-error_log"
    CustomLog "logs/test.bin-access_log" common
</VirtualHost>

作者:u013032788
来源:CSDN
原文:https://blog.csdn.net/u013032788/article/details/51395622
版权声明:本文为博主原创文章,转载请附上博文链接!

坚持技术分享,您的支持将鼓励我继续创作!

欢迎关注我的其它发布渠道