2016-08-23 5 views
2

Wampをセットアップするために以下の手順を実行しましたが、ネットワーク内の別のコンピューターからサーバーにアクセスできませんでした。私は間違って何をしていますか? WAMPを64ビットバージョン3.0.4これはApacheのバージョンに付属しているインストールWampサーバーがオンラインになっていません

  1. 2.4.18
  2. 開始WAMPをサーバ、右(左クリック)システム上のMenu item : Online/Offline
  3. Wamp settings下クリックして選択し、システムトレイのアイコンをクリックしましたトレイアイコンと私は、ネットワーク内の別のマシンからサーバーにアクセスしようとすると、サーバはエラーメッセージを表示してエラーページを返すPut Online
  4. 選んだYou don't have permission to access/on this server

私はhttpd-vhosts.confファイルを直接編集し、すべてのサービスを再起動しましたが、同じエラーが発生しました。以下はHTTPD-vhosts.confファイルの内容と私のシステムIP

のhttpd-vhosts.conf

# 
# Virtual Hosts 
# 

<VirtualHost *:80> 
    ServerName localhost 
    DocumentRoot C:/Users/dinesh/Softwares/Wamp64/www 
    <Directory "C:/Users/dinesh/Softwares/Wamp64/www/"> 
     Options +Indexes +FollowSymLinks +MultiViews 
     AllowOverride All 
     Require local 
     Require ip 100.97.67 
    </Directory> 
</VirtualHost> 

システムのIP

mintty> ipconfig | grep IPv4 
    IPv4 Address. . . . . . . . . . . : 100.97.67.11 
mintty> 

答えて

5

# 
 
# Virtual Hosts 
 
# 
 

 
    <VirtualHost *:80> 
 
     ServerName localhost 
 
     DocumentRoot D:/wamp/www 
 
     <Directory "D:/wamp/www/"> 
 
      Options +Indexes +FollowSymLinks +MultiViews 
 
      AllowOverride All 
 
      Require local 
 
     </Directory> 
 
    </VirtualHost> 
 
#

あなたのポートを確認してください、あなたは他の回答によって提案すべてを行っているが、まだそれが動作しない場合

# 
 
# Virtual Hosts 
 
# 
 

 
    <VirtualHost *:80> 
 
     ServerName localhost 
 
     DocumentRoot D:/wamp/www 
 
     <Directory "D:/wamp/www/"> 
 
      Options +Indexes +FollowSymLinks +MultiViews 
 
      AllowOverride All 
 
      #Require local 
 
     </Directory> 
 
    </VirtualHost> 
 
#

0

Put Online/ Offlineメニュー項目は、オプションの行われているであり、 WAMPServer 3では基本的に機能がないため、デフォルトでは表示されません。

WAMPServer 3では、localhostの仮想ホストが定義されました。 dは、httpd.confファイルに定義されているローカルホスト上に存在します。新しいメニュー構造を見れば

httpd-vhosts.confと呼ばれるApacheのメニューに新しいメニュー項目がありますが、あなたのdefautlエディタに以下

enter image description here

これはApacheバーチャルホストの定義ファイルをロードします参照してください。それは次のようになります。ネットワーク上の特定のマシンからのアクセスを許可するに

# 
# Virtual Hosts 
# 

<VirtualHost *:80> 
    ServerName localhost 
    DocumentRoot D:/wamp/www 
    <Directory "D:/wamp/www/"> 
     Options +Indexes +FollowSymLinks +MultiViews 
     AllowOverride All 
     Require local 
    </Directory> 
</VirtualHost> 

<VirtualHost *:80> 
    ServerName localhost 
    DocumentRoot D:/wamp/www 
    <Directory "D:/wamp/www/"> 
     Options +Indexes +FollowSymLinks +MultiViews 
     AllowOverride All 
     Require local 
     Require ip 192.168.1.100 
     Require ip 192.168.1.101 
    </Directory> 
</VirtualHost> 

またはすべてのPCのネットワークアクセスでは、4のちょうど最初の3を追加できるようにする例えば追加requireに四分位とあなたは、このメニューが表示されない場合は任意のIPはそのサブネット内

<VirtualHost *:80> 
    ServerName localhost 
    DocumentRoot D:/wamp/www 
    <Directory "D:/wamp/www/"> 
     Options +Indexes +FollowSymLinks +MultiViews 
     AllowOverride All 
     Require local 
     Require ip 192.168.1 
    </Directory> 
</VirtualHost> 

を許可されますそして、あなたはここhttps://sourceforge.net/projects/wampserver/files/WampServer%203/WampServer%203.0.0/Updates/wampserver3_x86_x64_update3.0.5.exe/download からWAMPServer 3.0.5にアップグレードする必要がありますそれはちょうど直接\wamp\bin\apache\apache{version}\conf\extra\httpd-vhosts.confファイルを編集し、WAMPServer 3.0.4また

以上簡単なアップグレードです。

このファイルを変更した後でApacheを再起動するのを忘れないでください。

+0

私のメニューにhttpd-vhosts.confはありません – Dinesh

+0

私の答えにいくつかの情報を追加しました – RiggsFolly

+0

httpd-vhosts.confに変更を加えて、すべてのサービスを再起動しましたが、同じエラーが発生しました – Dinesh

0

に置き換え80は他のアプリケーションでは使用されていませんカチオン。

すぐに確認するには、コマンドプロンプトでnetstat -a -bコマンドを実行します。

私の場合、Skypeはポート80を使用していましたが、Skypeの詳細設定に入ることで止めることができました。

関連する問題