X-Git-Url: https://git.rapsys.eu/ihttpd/blobdiff_plain/387d6ed8a97a156667377dee594059c7ba718a7c..72625a495e1c6ba10da830bcf5cdf212ae919b30:/SOURCES/ihttpd.conf diff --git a/SOURCES/ihttpd.conf b/SOURCES/ihttpd.conf index beadf23..38f0c01 100644 --- a/SOURCES/ihttpd.conf +++ b/SOURCES/ihttpd.conf @@ -62,16 +62,30 @@ SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5 SSLSessionCache shmcb:/run/ihttpd/ssl_scache(512000) SSLProtocol all -SSLv3 -# Redirect to https +# Enable rewrite RewriteEngine On + +# Redirect to https RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] +# Redirect unexisting documents to script +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule .* /index.bin [L] + # SSL vhost + # Enable ssl SSLEngine on SSLCertificateFile /etc/pki/tls/certs/ihttpd.pem SSLCertificateKeyFile /etc/pki/tls/private/ihttpd.pem + + # Inherit rewrite config + RewriteEngine On + RewriteOptions Inherit + + # Set custom log CustomLog "/run/ihttpd/log/https.log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"