source: win_iovar/vhost.conf @ 12:01dfa2c92df8

Last change on this file since 12:01dfa2c92df8 was 12:01dfa2c92df8, checked in by Shawn Wilson <shawn@…>, 20 months ago

saw_020117_4 - More Apache redirects.

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