创建WAMP vHost

时间:2016-06-09 07:31:59

标签: mysql apache phpmyadmin

今天我在WAMP中创建了一个虚拟主机,但之后我再也无法访问localhost / phpmyadmin和localhost了,我也尝试为它创建一个vhost,但它没有用。

正确包含了httpd-vhosts.conf文件。

编辑:我可以访问pao.dev

的httpd-vhosts.conf

<VirtualHost *:80>
    ServerName pao.dev
    DocumentRoot C:/wamp/www/pao/PAO-zwabbertje/public
    <Directory C:/wamp/www/pao/PAO-zwabbertje/public>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerName phpmyadmin.dev
    DocumentRoot c:/wamp/apps/phpmyadmin4.1.14/
   <Directory "c:/wamp/apps/phpmyadmin4.1.14/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
        Allow from all
</Directory>
</VirtualHost>

个人电脑

127.0.0.1       localhost
127.0.0.1       pao.dev
127.0.0.1       phpmyadmin.dev

错误:

禁止

您无权在此服务器上访问/ phpmyadmin。

Apache / 2.4.9(Win32)PHP / 5.5.12服务器在localhost端口80

0 个答案:

没有答案