1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
| <VirtualHost 192.168.1.111:80>
ServerName <monsite>.net
Redirect / https://<monsite>.net
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin mail@<xxxx>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ServerCertificate.crt
SSLCertificateKeyFile /etc/apache2/cachou.net.key
SSLCertificateChainFile /etc/apache2/CACertificate-INTERMEDIATE.crt
DocumentRoot /var/www/html
<Directory "/var/www/html">
Options -Indexes -FollowSymLinks -MultiViews +Includes
AllowOverride All
#Require all granted
Require all denied
</Directory>
<Proxy *>
#Mode basic
AuthType Basic
AuthName "Merci de vous inscrire"
AuthUserFile /etc/apache2/.htpasswd
AuthType Digest
#Mode digest
#AuthDigestDomain /
#AuthName "Merci de vous inscrire"
#AuthDigestProvider file
#AuthUserFile /etc/apache2/.htdigest
Require valid-user
</Proxy>
ProxyRequests Off
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
ProxyPass /calibre http://localhost:8080/calibre/
ProxyPassReverse /calibre http://localhost:8080/calibre/
#Reecriture des liens html
#LoadModule proxy_html_module /usr/lib/apache2/modules/mod_proxy_html.so
#SetOutputFilter proxy-html
#ProxyHTMLURLMap http://localhost:8080/calibre/ http://www.Dmonsite.com/calibre
#RequestHeader unset Accept-Encoding
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule> |
Partager