Apache 配置 虚拟主机

<VirtualHost *:80>
    
    ServerName tongcheng.5q88.cn:80
    ServerAlias 
    DirectoryIndex index.html index.htm index.php 
    ErrorLog logs/tongcheng.5q88.cn-error.log
    CustomLog logs/tongcheng.5q88.cn-access_%Y%m%d.log comonvhost
    
    DocumentRoot "C:/www/kb"
    <Directory "C:/www/kb">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
    </Directory>

</VirtualHost>

照着上边赋值.就行 !!!

猜你喜欢

转载自www.cnblogs.com/whm-blog/p/9111993.html
今日推荐