Archive for July, 2009

Trac and SVN on subdomains

Posted in: Tech, Web | Tags: , , ,

I finally figured out how to get trac and svn on their own subdomains since when I originally setup the web server awhile ago. The only thing that changes is the vhosts file. In that example it was “/etc/apache2/sites-available/svntrac”. Here’s what the file should look like now:

NameVirtualHost *:80
<VirtualHost *:80>

ServerAdmin you@domain.com
ServerName domain.com

DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>

<VirtualHost *:80>
  ServerName svn.domain.com
   <Location />
   DAV svn
   SVNParentPath /svn

   AuthType Basic
   AuthName "Subversion Repository"
   AuthUserFile /path/to/svnauth

<LimitExcept GET PROPFIND OPTIONS REPORT>
   Require valid-user
</LimitExcept>

#   AuthzSVNAccessFile /path/to/svnaccess
  </Location>
</VirtualHost>

<VirtualHost *:80>

   ServerName trac.domain.com

   <Location />

    SetHandler mod_python
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnvParentDir /trac
    PythonOption TracUriRoot /

   </Location>

   <Location /*/login>

    AuthType Basic
    AuthName "Trac"
    AuthUserFile /path/to/svnauth
    Require valid-user

   </Location>
</VirtualHost>
Jul
19
2009
4 Comments »

Open Air Web Server

Posted in: Gallery |

Some pictures of the new server. I didn’t leave it like this, i ended up putting it in a case i had laying around.

Continue Reading »

Jul
13
2009
No Comments »