Outils pour utilisateurs

Outils du site


tech:notes_apache

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

tech:notes_apache [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:notes_apache [2025/11/11 20:13] (Version actuelle) Jean-Baptiste
Ligne 29: Ligne 29:
 grep -Pa -o 'TNS_ADMIN=[^\x00]*\x00' /proc/$(pgrep -o apache)/environ |sed -e 's/[^[:print:]]//g' grep -Pa -o 'TNS_ADMIN=[^\x00]*\x00' /proc/$(pgrep -o apache)/environ |sed -e 's/[^[:print:]]//g'
 </code> </code>
 +
  
 == Rewrite == Rewrite
Ligne 76: Ligne 77:
 * https://httpd.apache.org/docs/2.4/fr/misc/security_tips.html * https://httpd.apache.org/docs/2.4/fr/misc/security_tips.html
 * https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/sect-Security_Guide-Server_Security-Securing_the_Apache_HTTP_Server.html * https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/sect-Security_Guide-Server_Security-Securing_the_Apache_HTTP_Server.html
 +
  
 == Ignorer dans les logs File does not exist: /var/www/favicon.ico == Ignorer dans les logs File does not exist: /var/www/favicon.ico
  
-<code apache /etc/apache2/conf.d/nofavicon.conf>+''/etc/apache2/conf.d/nofavicon.conf'' 
 +<code apache>
 Redirect 404 /favicon.ico Redirect 404 /favicon.ico
 <Location /favicon.ico> <Location /favicon.ico>
Ligne 121: Ligne 124:
  30029900 (us) rec=898 (bytes) "POST /site/plop.php HTTP/1.1" 500 sent=763 (bytes)  30029900 (us) rec=898 (bytes) "POST /site/plop.php HTTP/1.1" 500 sent=763 (bytes)
 </code> </code>
 +
  
 === [warn] _default_ VirtualHost overlap on port 443, the first has precedence === [warn] _default_ VirtualHost overlap on port 443, the first has precedence
Ligne 128: Ligne 132:
 [Mon Sep 14 14:31:10 2020] [warn] _default_ VirtualHost overlap on port 443, the first has precedence [Mon Sep 14 14:31:10 2020] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
 </code> </code>
 +
  
 === Solution === Solution
Ligne 133: Ligne 138:
 Ajouter ''NameVirtualHost *:443'' Ajouter ''NameVirtualHost *:443''
  
- +''/etc/apache2/ports.conf'' 
-<code apache /etc/apache2/ports.conf>+<code apache>
 <IfModule mod_ssl.c> <IfModule mod_ssl.c>
     NameVirtualHost *:443     NameVirtualHost *:443
tech/notes_apache.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki