lib/subtrac/templates/vhost.erb in keithsalisbury-subtrac-0.1.7 vs lib/subtrac/templates/vhost.erb in keithsalisbury-subtrac-0.1.9
- old
+ new
@@ -1,21 +1,21 @@
<virtualhost *>
ServerAdmin webmaster@localhost
ServerName <%= @server_hostname %>
- DocumentRoot <%= @docs_dir %>
- ErrorLog <%= @log_dir %>/error.<%= @server_hostname %>.log
- CustomLog <%= @log_dir %>/access.<%= @server_hostname %>.log combined
+ DocumentRoot <%= docs_dir %>
+ ErrorLog <%= log_dir %>/error.<%= @server_hostname %>.log
+ CustomLog <%= log_dir %>/access.<%= @server_hostname %>.log combined
LogLevel error
RewriteEngine On
- RewriteRule ^/$ http://<%= @server_hostname %>/<%= @default_client %>/<%= @default_project %>
- RewriteRule ^/index*$ http://<%= @server_hostname %>/<%= @default_client %>/<%= @default_project %>
+ RewriteRule ^/$ http://<%= @server_hostname %>/<%= @default_client.downcase %>/<%= @default_project.downcase %>
+ RewriteRule ^/index*$ http://<%= @server_hostname %>/<%= @default_client.downcase %>/<%= @default_project.downcase %>
<location />
AuthType Basic
AuthName '<%= @server_name %>'
- AuthUserFile <%= @APP_CONFIG[:dirs][:install] %>/passwords
+ AuthUserFile <%= @install_dir %>/passwords
#Require valid-user
#AuthBasicProvider file ldap
#AuthLDAPBindDN '<%= @ldap_bind_dn %>'
#AuthLDAPBindPassword '<%= @ldap_bind_password %>'
#AuthLDAPURL '<%= @ldap_url %>'
@@ -28,8 +28,8 @@
SVNListParentPath On
SVNAutoversioning On
SVNReposName '<%= @server_name %>'
</location>
- Include <%= @locations_dir %>/*
+ Include <%= locations_dir %>/*
</virtualhost>
\ No newline at end of file