我非常努力工作!無法從遠程機器訪問wampserver 2.5
我已經在我的win7 64bits機器上安裝了wampserver 2.5。
在httdp.conf文件,我只是註釋掉關於虛擬主機行:
Include conf/extra/httpd-vhosts.conf
的的httpd-vhosts.conf包含:
<VirtualHost *:80>
DocumentRoot "C:/Users/Alain/Dropbox/Website/exemples/Grafikart/Petsy_alain.dev"
ServerName petsy.dev
ServerAlias www.petsy.dev
<Directory "C:/Users/Alain/Dropbox/Website/exemples/Grafikart/Petsy_alain.dev">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
<RequireAny>
Require local
Require ip 192.168.1
</RequireAny>
</Directory>
</VirtualHost>
(我也嘗試要求所有授權)
我第一次安裝了wampserver 2.5 64位。
我能夠從我的本地機器訪問http://petsy.dev
但是,當我試圖從我的局域網的其他機器訪問http://192.168.1.16/petsy.dev
,我總是得到一個403錯誤(禁止):
[Thu Dec 04 14:43:08.519329 2014] [authz_core:error] [pid 11088:tid 776] [client 192.168.1.15:39975] AH01630: client denied by server configuration: C:/Users/Alain/Dropbox/Website/exemples/Grafikart/Petsy_alain.dev
[Thu Dec 04 14:43:08.635335 2014] [authz_core:error] [pid 11088:tid 776] [client 192.168.1.15:39975] AH01630: client denied by server configuration: C:/wamp/www/favicon.ico
我有遠程訪問到petsy.dev當我在遠程PC主機添加文件的行:
192.168.1.16 petsy.dev
在這種情況下,我能,我的遠程計算機上,使用'http://petsy.dev訪問到服務器」。
首先,我不明白它在服務器端發生了什麼變化,其次我不能滿足這種解決方案,因爲我無法在智能手機上使用它。
由於我無法在任何地方找到答案,我終於嘗試安裝wampserver 2.5 32位!
同樣的問題!但有一個不同的錯誤:
我總是可以在本地訪問我的petsy.dev網站,但現在,當我嘗試從遠程訪問它時,出現404錯誤(未找到)!
這裏有阿帕奇 的訪問日誌從我的本地機器:
xxxx::7d1a:xxxx:9672:xxxx - - [05/Dec/2014:19:22:25 +0100] "GET/HTTP/1.1" 200 40438
從我的遠程機器:
192.168.1.15 - - [05/Dec/2014:19:22:30 +0100] "GET /petsy.dev/ HTTP/1.1" 404 295
的httpd -T回答語法OK
的httpd -S說:
VirtualHost configuration:
*:80 is a NameVirtualHost
default server localhost (C:/wamp/bin/apache/apache2.4.9/conf/extra/httpd-vhosts.conf:23)
port 80 namevhost localhost (C:/wamp/bin/apache/apache2.4.9/conf/extra/httpd-vhosts.conf:23)
alias localhost
port 80 namevhost petsy.dev (C:/wamp/bin/apache/apache2.4.9/conf/extra/httpd-vhosts.conf:34)
alias www.petsy.dev
ServerRoot: "C:/wamp/bin/apache/apache2.4.9"
Main DocumentRoot: "C:/wamp/www/"
Main ErrorLog: "C:/wamp/logs/apache_error.log"
Mutex rewrite-map: using_defaults
Mutex authdigest-client: using_defaults
Mutex default: dir="C:/wamp/bin/apache/apache2.4.9/logs/" mechanism=default
Mutex authdigest-opaque: using_defaults
PidFile: "C:/wamp/bin/apache/apache2.4.9/logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: APACHE24=Apache2.4
請,請問我犯了哪個愚蠢的錯誤?
嗨RiggsFolly,我試過了,我想我很遺憾都試過了,但我真的不能在遠程情況下獲得wampserver 2.5工作訪問使用像http:// 192.168.1.16/petsy.dev或http://192.168.1.16/www.petsy.dev的wamp id地址,或者我不知道還有什麼... – 2ndGAB 2014-12-06 13:29:24