apache 配置虚拟主机

//远程连接登陆不上数据库phpmyadmin页面

D:\xampp\apache\conf\extra 文件夹下的httpd_xampp.conf文件

Deny from all注释掉 加个#号
============================================================
//配置appche路径
D:\xampp\apache\conf文件夹下的httpd.conf文件

DocumentRoot "D:/xampp/htdocs/ppc/source/hljzr"
<Directory "D:/xampp/htdocs/ppc/source/hljzr">
===============================================================
//想用apache服务下的vhosts服务

在apache文件夹下找到httpd
修改  把include前面的"#"去掉
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
================================================================
//如何用vhosts服务

在vhosts服务文件里写入如下代码
<VirtualHost *:80>
    #ServerAdmin [email protected]
    DocumentRoot "C:/localhost/cs_witkey"
    ServerName www.witkey.com

    <Directory "C:/localhost/cs_witkey">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>

    #ServerAlias www.dummy-host.localhost
    #ErrorLog "logs/dummy-host.localhost-error.log"
    #CustomLog "logs/dummy-host.localhost-access.log" combined
================================================================
</VirtualHost>

你可能感兴趣的:(apache 配置虚拟主机)