]> Raphaƫl G. Git Repositories - ihttpd/blob - SOURCES/ihttpd.conf
Add debug-sshd
[ihttpd] / SOURCES / ihttpd.conf
1 # Fix server root
2 #XXX: useless now ???
3 ServerRoot "/etc"
4
5 # Listen on port 80 and 443
6 Listen 80
7 Listen 443
8
9 # Server admin
10 ServerAdmin root@localhost
11
12 # Fix user
13 User root
14 Group root
15
16 # Send charset
17 AddDefaultCharset UTF-8
18
19 # Allow file send
20 EnableSendfile on
21
22 # Set document root
23 DocumentRoot "/var/www/html"
24
25 <Directory />
26 AllowOverride None
27 </Directory>
28 <Directory "/run/ihttpd/log">
29 AllowOverride None
30 Require all granted
31 </Directory>
32 <Directory "/var/www/html">
33 AllowOverride None
34 Options Indexes FollowSymLinks ExecCGI
35 Require all granted
36 DirectoryIndex index.bin
37 AddHandler cgi-script .bin
38 </Directory>
39
40 # Fix mime type file location
41 TypesConfig /etc/mime.types
42
43 # Fix pid location
44 PidFile /run/ihttpd/ihttpd.pid
45
46 # Fix dir for rewrite map lock files
47 Mutex file:/run/ihttpd rewrite-map
48 Mutex file:/run/ihttpd mpm-accept
49
50 # Disable version info
51 ServerSignature Off
52 ServerTokens Prod
53
54 # SSL configuration
55 SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
56 SSLSessionCache shmcb:/run/ihttpd/ssl_scache(512000)
57 SSLProtocol all -SSLv3
58
59 # Redirect to https
60 RewriteEngine On
61 RewriteCond %{HTTPS} !=on
62 RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
63
64 # SSL vhost
65 <VirtualHost *:443>
66 ServerName localhost
67 SSLEngine on
68 SSLCertificateFile /etc/pki/tls/certs/ihttpd.pem
69 SSLCertificateKeyFile /etc/pki/tls/private/ihttpd.pem
70 CustomLog "/run/ihttpd/log/https.log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
71 </VirtualHost>
72
73 # Log section
74 ErrorLog "/run/ihttpd/log/error.log"
75 LogLevel warn
76
77 <IfModule log_config_module>
78 CustomLog "/run/ihttpd/log/http.log" "%h %l %u %t \"%r\" %>s %b"
79 </IfModule>