1
私はここ数多くのスレッドを読んでいますが、何も提案はありませんでした。 Windows Server 2012 R2の新規インストール時にWAMP 64ビットの最新バージョンをインストールしました。外部からのアクセスが禁止されているWAMP 403
私は
andrew
呼ばwww
ディレクトリ内のサブディレクトリを作成しました。それはindex.html
ファイルです。私は、hostsファイルに次を追加しました:私はhttpd.confの
で仮想ホストの行をコメント解除<VirtualHost *:80> DocumentRoot "c:/wamp64/www/andrew" ServerName andrew <Directory "c:/wamp64/www/andrew"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost>
:私は
httpd-vhosts.conf
ファイルに以下を追加127.0.0.1 andrew ::1 andrew
- net dnscacheを停止して開始しました
- I私は
[server IP address]*/andrew/index.html
のように別のマシンからサーバにアクセスしたときに、私は403 Forbidden
エラーを取得し、関係なく、
WAMPサーバの「オンラインを入れて」
[Fri Apr 22 17:10:32.628356 2016] [mpm_winnt:notice] [pid 4680:tid 424] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Fri Apr 22 17:10:34.656507 2016] [mpm_winnt:notice] [pid 4444:tid 312] AH00364: Child: All worker threads have exited.
[Fri Apr 22 17:10:34.672087 2016] [mpm_winnt:notice] [pid 4680:tid 424] AH00430: Parent: Child process 4444 exited successfully.
[Fri Apr 22 17:10:34.921723 2016] [auth_digest:notice] [pid 4724:tid 416] AH01757: generating secret for digest authentication ...
[Fri Apr 22 17:10:34.952892 2016] [mpm_winnt:notice] [pid 4724:tid 416] AH00455: Apache/2.4.17 (Win64) PHP/5.6.16 configured -- resuming normal operations
[Fri Apr 22 17:10:34.952892 2016] [mpm_winnt:notice] [pid 4724:tid 416] AH00456: Apache Lounge VC14 Server built: Oct 11 2015 11:49:07
[Fri Apr 22 17:10:34.952892 2016] [core:notice] [pid 4724:tid 416] AH00094: Command line: 'C:\\wamp64\\bin\\apache\\apache2.4.17\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.17'
[Fri Apr 22 17:10:34.952892 2016] [mpm_winnt:notice] [pid 4724:tid 416] AH00418: Parent: Created child process 4388
[Fri Apr 22 17:10:35.140157 2016] [auth_digest:notice] [pid 4388:tid 312] AH01757: generating secret for digest authentication ...
[Fri Apr 22 17:10:35.171357 2016] [mpm_winnt:notice] [pid 4388:tid 312] AH00354: Child: Starting 64 worker threads.
[Fri Apr 22 17:10:49.899265 2016] [authz_core:error] [pid 4388:tid 1040] [client 73.82.23.97:57193] AH01630: client denied by server configuration: C:/wamp64/www/andrew/index.html
[Fri Apr 22 17:10:50.055249 2016] [authz_core:error] [pid 4388:tid 1040] [client 73.82.23.97:57193] AH01630: client denied by server configuration: C:/wamp64/www/favicon.ico, referer: http://[SERVER IP]/andrew/index.html
私は今、それをWindows 2012 Server上でいくつかの設定に関係しています考えていますが、私それを理解することはできません。助けて。
これは技術的に機能します。 [Server IP] /andrew/index.htmlは表示されませんが、http:// [Server IP]と入力するとそのフォルダにまっすぐ進みます。私が望んでいたのは、wwwディレクトリにいくつかの異なるフォルダがあり、ユーザがIP/andrew、IP/foobarなどを訪問できるようにそれぞれのvhostエントリを設定することです。 – Crescent
しかし、あなたは 'DocumentRoot'を'andrew'フォルダに格納されますので、あなたのURLに入れないでください。私はあなたが仮想ホストが何であるか誤解していると思います。私が言ったように、あなたはおそらく全く必要としません。代わりに[Documentation](https://httpd.apache.org/docs/current/mod/mod_alias.html)の 'Alias'コマンドを見てください。名前によって暗示されるように、[仮想ホスト*](https://httpd.apache.org/docs/current/vhosts/)では、1つのサーバー上で異なるホスト名を使用することができます。 – miken32
Ah。エイリアスの代わりに仮想ホストを使うと言った記事を読んでいました。私は確かにそれはWebになるとn00bです。私は貿易によってSQL Serverの開発者です。ここに私が参照していた記事があります:https://stackoverflow.com/questions/23665064/project-links-do-not-work-on-wamp-server/23990618#23990618 – Crescent