source: win_iovar/vhost.conf @ 13:39d932c83a88

tip
Last change on this file since 13:39d932c83a88 was 13:39d932c83a88, checked in by Shawn Wilson <shawn@…>, 17 months ago

saw_050217_1 - Make Trac the root and start getting things together for better presentation.

File size: 3.1 KB
Line 
1# Copyright (C) 2017 Virgo Venture, Inc.
2# @%@~LICENSE~@%@
3
4<VirtualHost *:80>
5    ServerName iovar.win
6    ServerAlias www.iovar.win iovar.win
7    ServerAdmin webmaster@lannocc.com
8    DocumentRoot /var/www/win.iovar/trac
9
10    CustomLog /var/log/apache2/win.iovar/access_log vhost
11    ErrorLog /var/log/apache2/win.iovar/error_log
12
13    #RedirectMatch temp ^/$ /hg/
14
15    <Location "/">
16        <LimitExcept GET>
17            AuthType Basic
18            AuthName "A Virgo Venture"
19            AuthBasicProvider "ldap"
20            AuthLDAPURL "ldap://dir.s/ou=people,ou=ops,o=lannocc?uid?one?(objectClass=posixAccount)"
21        #    authzldapauthoritative Off
22            AuthLDAPBindAuthoritative off
23            Require valid-user
24        </LimitExcept>
25    </Location>
26    <Directory "/var/www/win.iovar/trac">
27        SetEnv PYTHON_EGG_CACHE /var/www/win.iovar/trac/egg-cache
28        SetHandler mod_python
29        PythonHandler trac.web.modpython_frontend
30        PythonOption TracEnv /var/www/win.iovar/trac
31        PythonOption TracUriRoot /
32    </Directory>
33
34    <Location "/login">
35        AuthType Basic
36        AuthName "A Virgo Venture"
37        AuthBasicProvider "ldap"
38        AuthLDAPURL "ldap://dir.s/ou=people,ou=ops,o=lannocc?uid?one?(objectClass=posixAccount)"
39    #    authzldapauthoritative Off
40        AuthLDAPBindAuthoritative off
41        Require valid-user
42    </Location>
43
44
45    ScriptAlias /hg "/var/www/win.iovar/cgi-bin/hg.cgi"
46    <Location "/hg">
47        <LimitExcept GET>
48            AuthType Basic
49            AuthName "A Virgo Venture"
50            AuthBasicProvider "ldap"
51            AuthLDAPURL "ldap://dir.s/ou=people,ou=ops,o=lannocc?uid?one?(objectClass=posixAccount)"
52        #    authzldapauthoritative Off
53            AuthLDAPBindAuthoritative off
54            Require valid-user
55        </LimitExcept>
56    </Location>
57
58    Alias /jar "/var/www/win.iovar/htdocs/jar"
59    <Location "/jar">
60        Options +Indexes
61        IndexOptions IgnoreCase FancyIndexing FoldersFirst VersionSort IconsAreLinks NameWidth=* DescriptionWidth=* SuppressHTMLPreamble
62        HeaderName header.html
63        ReadmeName footer.html
64        IndexOrderDefault Ascending Name
65    </Location>
66    <Directory "/var/www/win.iovar/htdocs/jar">
67        IndexIgnore header.html footer.html
68        # allows .htaccess to override IndexIgnore, descriptions, etc.
69        AllowOverride Indexes
70    </Directory>
71
72    #
73    # Redirect old namespace(s), etc....
74    #
75    RewriteEngine on
76
77    # com/iovar -> win/iovar (but only if requesting tip or no specific revision)
78    RedirectMatch seeother "^/hg/iovar/file/tip/src/com/iovar/(.*)" "/hg/iovar/file/tip/src/win/iovar/$1"
79    RewriteCond %{QUERY_STRING} !rev
80    RewriteRule "^/doc/browser/iovar/src/com/iovar/(.*)" "/doc/browser/iovar/src/win/iovar/$1?" [R=seeother|L]
81
82    # Trac browser / -> /iovar
83    RedirectMatch permanent "^/doc/browser/README$" "/doc/browser/iovar/README"
84    RedirectMatch permanent "^/doc/browser/INSTALL$" "/doc/browser/iovar/INSTALL"
85    RedirectMatch permanent "^/doc/browser/CHANGELOG$" "/doc/browser/iovar/CHANGELOG"
86    RedirectMatch permanent "^/doc/browser/LICENSE$" "/doc/browser/iovar/LICENSE"
87
88
89</VirtualHost>
90
Note: See TracBrowser for help on using the repository browser.