5 # Listen on port 80 and 443
13 ServerAdmin root@localhost
20 AddDefaultCharset UTF-8
29 DocumentRoot "/var/www/html"
34 <Directory "/run/ihttpd/log">
38 <Directory "/var/www/html">
40 Options Indexes FollowSymLinks ExecCGI
42 DirectoryIndex index.bin
43 AddHandler cgi-script .bin
46 # Fix mime type file location
47 TypesConfig /etc/mime.types
50 PidFile /run/ihttpd/ihttpd.pid
52 # Fix dir for rewrite map lock files
53 Mutex file:/run/ihttpd rewrite-map
54 Mutex file:/run/ihttpd mpm-accept
56 # Disable version info
61 SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
62 SSLSessionCache shmcb:/run/ihttpd/ssl_scache(512000)
63 SSLProtocol all -SSLv3
69 RewriteCond %{HTTPS} !=on
70 RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
72 # Redirect unexisting documents to script
73 RewriteCond %{REQUEST_FILENAME} !-f
74 RewriteCond %{REQUEST_FILENAME} !-d
75 RewriteRule .* /index.bin [L]
81 SSLCertificateFile /etc/pki/tls/certs/ihttpd.pem
82 SSLCertificateKeyFile /etc/pki/tls/private/ihttpd.pem
84 # Inherit rewrite config
86 RewriteOptions Inherit
89 CustomLog "/run/ihttpd/log/https.log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
93 ErrorLog "/run/ihttpd/log/error.log"
96 <IfModule log_config_module>
97 CustomLog "/run/ihttpd/log/http.log" "%h %l %u %t \"%r\" %>s %b"