WAMP 403 interdit de sources externes

J’ai lu une tonne de discussions ici et ailleurs, mais aucune des suggestions n’a fonctionné. J’ai installé la dernière version de WAMP 64 bits sur une nouvelle installation de Windows Server 2012 R2.

Indépendamment, quand j’accède au serveur à partir d’une autre machine comme [server IP address]*/andrew/index.html je reçois une erreur 403 Forbidden .

Voici le journal des erreurs apache (“[IP SERVEUR]” est vraiment l’adresse IP du serveur:

 [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 

Je pense maintenant que cela a à voir avec certains parameters sur Windows 2012 Server, mais je ne peux pas le comprendre. Aidez-moi.

Comme Apache ne sait pas associer l’adresse IP à votre hôte virtuel, il utilise les parameters du serveur principal. Vous n’avez probablement pas besoin d’un hôte virtuel, mais essayez ceci:

  DocumentRoot "c:/wamp64/www/andrew" ServerName andrew #of course, enter your IP address here ServerAlias 1.2.3.4  Options Indexes FollowSymLinks AllowOverride All Require all granted