我曾嘗試和讀取所有種類的關於這一主題的問題,但不能得到這個工作。我正嘗試使用虛擬主機訪問與wamp使用的默認/ www不同的文件夾。但我不斷收到一個錯誤;
Forbidden
You don't have permission to access/on this server.
我可以完全訪問本地主機和phpmyadmin,但不能創建任何虛擬主機。
的httpd-vhosts.conf
# Virtual Hosts
#
# Required modules: mod_log_config
Listen 80
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:\Program Files (x86)\2. Apps\Wamp\www"
ServerName localhost
<Directory "C:/wamp/www">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:\Users\Chris\Documents\CBull Files\Projects\Tests"
ServerName test.lo
ServerAlias test.lo
<directory "C:\Users\Chris\Documents\CBull Files\Projects\Tests">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</directory>
主機
# Wamp Server Settings
127.0.0.1 localhost
127.0.0.1 test.lo
的httpd.conf
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
感謝
當出現錯誤時,您嘗試訪問什麼路徑?它是'http:// localhost /'還是別的? – 2013-04-01 17:23:10
與此設置我可以訪問'localhost'和'phpmyadmin',但不'test.lo' – ChrisBull 2013-04-01 20:26:48
您是否以管理員身份登錄? – 2013-04-01 20:40:06