2014-02-27 14 views
0

是否有人知道如何在ipad或iphone上查看本地託管的網站上的wamp。香港專業教育學院設法打開命令提示符,發現我的IP地址 - 192.168.1.18然後我在我的瀏覽器上鍵入我的iPad這個地址,但我得到了錯誤「禁止」如何在ipad或iphone上本地託管的位置

沒有任何人有任何想法如何得到它工作?

感謝

+0

以下是我的工作方式:https://stackoverflow.com/a/41857012/470749 – Ryan

回答

0

試試這個

編輯httpd.conf文件,並查找本節

<Directory "d:/wamp/www/"> 
    # 
    # Possible values for the Options directive are "None", "All", 
    # or any combination of: 
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews 
    # 
    # Note that "MultiViews" must be named *explicitly* --- "Options All" 
    # doesn't give it to you. 
    # 
    # The Options directive is both complicated and important. Please see 
    # http://httpd.apache.org/docs/2.2/mod/core.html#options 
    # for more information. 
    # 
    Options Indexes FollowSymLinks 

    # 
    # AllowOverride controls what directives may be placed in .htaccess files. 
    # It can be "All", "None", or any combination of the keywords: 
    # Options FileInfo AuthConfig Limit 
    # 
    AllowOverride None 

    # 
    # Controls who can get stuff from this server. 
    # 
# onlineoffline tag - don't remove 
    Order Deny,Allow 
    Deny from all 
    Allow from 127.0.0.1 localhost 
</Directory> 

現在更改爲從您的IP允許訪問

# onlineoffline tag - don't remove 
    Order Deny,Allow 
    Deny from all 
    Allow from 127.0.0.1 localhost 
    Allow from 192.168.1 

注意我只使用了IP地址的4個部分中的前3個,這將允許從ny ip地址的範圍是192.168.1.0到192.168.1.255。這是因爲您的ipad將獲得不同的ipaddress分配給它,具體取決於您可能在任何時候連接了多少個其他設備。

如果您正在使用WAMPServr 2.4,因此阿帕奇2.4.x的語法是有點不同,你應該我們

Require local 
Require ip 192.168.1 

的要求當地蓋127.0.0.1本地主機,也是IPV6本地主機相當於:: 1 。

相關問題