Project

General

Profile

bad URI `/' on httpS and Alias » apache_redmine.conf

Apache configuration - guillain tonton, 2014-04-28 12:27

 
1
<VirtualHost *:80>
2
        ErrorLog /var/log/httpd/httpd_error.log
3
        TransferLog /var/log/httpd/httpd_access.log
4
        LogLevel info
5

    
6
        RewriteEngine on
7
        ReWriteCond %{SERVER_PORT} !^443$
8
        RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
9
</VirtualHost>
10
</pre>
11
<pre>
12
<VirtualHost *:443>
13
        ServerName redmine.myserver.com:443
14

    
15
        ProxyPass / http://localhost:3000/
16
        ProxyPassReverse / http://localhost:3000/
17

    
18
        ErrorLog /var/log/httpd/redmine_ssl_error.log
19
        TransferLog /var/log/httpd/redmine_ssl_access.log
20
        CustomLog /var/log/httpd/redmine_ssl_request.log \
21
                "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
22
        LogLevel info
23

    
24
        SSLEngine on
25
        SSLProtocol all -SSLv2
26
        SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
27
        SSLCertificateFile /home/apache/cgi-bin/redmine/cert/redmine.myserver.com.crt
28
        SSLCertificateKeyFile /home/apache/cgi-bin/redmine/cert/redmine.myserver.com.key
29

    
30
        #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
31
        <Files ~ "\.(cgi|shtml|phtml|php3?)$">
32
                SSLOptions +StdEnvVars
33
        </Files>
34
        <Directory "/html/apache/cgi-bin">
35
                SSLOptions +StdEnvVars
36
        </Directory>
37

    
38
        SetEnvIf User-Agent ".*MSIE.*" \
39
                nokeepalive ssl-unclean-shutdown \
40
                downgrade-1.0 force-response-1.0
41
</VirtualHost>
(1-1/3)