さて、この問題で 1 週間頭がおかしくなりました。一緒に解決策を見つけられることを願っています。
wamp サーバーをローカル ネットワークで実行するように構成しようとしています(ローカル ネットワークからアクセスできるようにします)。具体的には、ローカル エリア接続を使用して、別のコンピューターから /www フォルダーに保存されているプロジェクトにアクセスしたいと考えています。wamp サーバーに Windows 7 を使用しています。ただし、他のコンピューターから「192.168.178.3:8080」を実行すると、次のエラーが表示されます。
禁止: このサーバーの / にアクセスする権限がありません。
ポート 8080で wamp を実行しています(ポート 80 は IIS によって使用されます)。
私のローカル IP アドレスは192.168.178.3です
私がこれまでに行ったことを説明しようと思います...
httpd.conf で以下を変更しました。
Listen 192.168.178.3:8080
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
<Directory "c:/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.4/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 All
#
# Controls who can get stuff from this server.
#
# Online --> Require all granted
# onlineoffline tag - don't remove
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
Require local
</Directory>
<Directory "c:/wamp/www/project">
allow from all
</Directory>
<Directory "cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
また、http-vhosts.conf に次の行を挿入しました。
<VirtualHost 192.168.178:8080>
DocumentRoot "C:/wamp/www/project"
</VirtualHost>
すべてを再起動し、サーバーをオンラインにしましたが、それでも同じエラーが発生します。
どんな助けや提案もいただければ幸いです。
前もって感謝します!