Skip to content

Instantly share code, notes, and snippets.

@KingBain
Created February 20, 2014 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KingBain/9120574 to your computer and use it in GitHub Desktop.
Save KingBain/9120574 to your computer and use it in GitHub Desktop.
<VirtualHost _default_:80>
DocumentRoot "D:/Redmine-BITNAMI/apache2/htdocs"
<Directory "D:/Redmine-BITNAMI/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3 >
Require all granted
</IfVersion>
</Directory>
# BitNami applications installed with a prefix URL (default)
#Include "D:/Redmine-BITNAMI/apache2/conf/bitnami/bitnami-apps-prefix.conf"
DocumentRoot "D:\Redmine-BITNAMI/apps/redmine/htdocs/public/"
RewriteEngine On
RewriteRule ^/(.*)$ balancer://redminecluster%{REQUEST_URI} [P,QSA,L]
ProxyPass / balancer://redminecluster
ProxyPassReverse / balancer://redminecluster
<Location ~ "/httpauth-*">
#<Location />
RewriteCond %{LA-U:REMOTE_USER} (.+)
RewriteRule .* - [E=RU:%1,NS]
RequestHeader set REMOTE_USER %{RU}e
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOmitDomain On
require valid-user
</Location>
<Proxy balancer://redminecluster>
BalancerMember http://127.0.0.1:3001
BalancerMember http://127.0.0.1:3002
</Proxy>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment