# uncomment from /etc/apache2/apache2.conf
<Location /server-status>
SetHandler server-status
ExtendedStatus On
Order deny,allow
Deny from all
Allow from 127.0.0.1 .your_domain.com
</Location>openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/apache.pem -keyout /etc/apache2/ssl/apache.pem hint: to generate a wildcard certificate for multiple name-based virtualhosts, use *.domain.tld as the common name.
php_value auto_append_file /chemin_vers_ficher_a_inclure/append.php
Dans httpd.conf Mettre : AddDefaultCharset off Mettre en commentaire tous les : AddCharset Mettre fr en premier pour : LanguagePriority
Faire tourner les logs avec une taille de 1 Mo sous Windows :
ErrorLog "|bin/rotatelogs.exe logs/htdocs-error_log 1M"
Exemple complet :
<VirtualHost *:8080>
DocumentRoot c:\htdocs
ErrorLog "|bin/rotatelogs.exe logs/htdocs-error_log 1M"
CustomLog logs/htdocs-access_log common
</VirtualHost><VirtualHost *:80> ServerName www.domain.com RewriteEngine On RewriteRule ^.*$ https://www.domain.com/ [R,L] </VirtualHost> <VirtualHost *:443> ServerName www.domain.com . . .
First / Previous / Next / Last / Page 1 of 1 (8 posteets)