Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th October 2009, 04:17
PavementPounder PavementPounder is offline
Junior Member
 
Join Date: Jul 2008
Location: Edmonton - Alberta
Posts: 17
Thanks: 3
Thanked 3 Times in 2 Posts
Default Installing Trac on Virtual Host

Hi,

I have a working trac environment, so when I go to http://www.victorycms.org/cgi-bin/trac.fcgi I see the trac interface as expected. But I want it so that if I go to http://www.victorycms.org/ then it right away goes to the trac interface without the /cgi-bin/trac.fcgi part of the url.

The trac environment is located at /var/www/web3/trac.

Here is the optional apache directives i put for the website:
Code:
<Location />
        SetHandler mod_python
        PythonInterpreter main_interpreter
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /var/www/web3/trac/
        PythonOption TracUriRoot /
        PythonOption PYTHON_EGG_CACHE /var/www/web3/egg-cache  
</Location>
Reply With Quote
Sponsored Links
  #2  
Old 2nd January 2010, 23:48
PavementPounder PavementPounder is offline
Junior Member
 
Join Date: Jul 2008
Location: Edmonton - Alberta
Posts: 17
Thanks: 3
Thanked 3 Times in 2 Posts
 
Default Solved

I had it working a while back and thought I'd answer my own thread. It turned to be another issue with the virtual hosts file not being written. Anyways here is the custom apache directives I used.

Code:
<IfModule mod_wsgi.c>
    <Directory /var/www/web3/cgi-bin>
	Options ExecCGI MultiViews
	MultiviewsMatch Handlers
	AddHandler wsgi-script .wsgi
    </Directory>
    WSGIScriptAlias / /var/www/web3/cgi-bin/trac.wsgi
    PythonOption TracEnv /var/www/web3/victorycms_trac
    PythonOption TracUriRoot /
    PythonOption PYTHON_EGG_CACHE /var/www/web3/egg-cache
</IfModule>
<IfModule mod_env.c>
    <Location "/">
	SetEnv PYTHON_EGG_CACHE /var/www/web3/egg-cache
	SetEnv TRAC_ENV /var/www/web3/victorycms_trac
    </Location>
</IfModule>
<IfModule mod_auth_digest.c>
    <Location "/login">
	AuthType Digest
	AuthName "victorycms-trac"
	AuthDigestDomain http://www.victorycms.org/login/
	AuthUserFile /var/www/web3/.trac-htpasswd
	Require valid-user
    </Location>
</IfModule>
Reply With Quote
The Following User Says Thank You to PavementPounder For This Useful Post:
falko (3rd January 2010)
Reply

Bookmarks

Tags
ispconfig 2, trac

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
smtp is error!!! fhawk Installation/Configuration 2 7th April 2009 13:17
Postfix problem: lost connection after CONNECT from unknown fernando_torrez Server Operation 5 30th November 2007 14:17
This is %#@*&^$# embarrassing! domino Smalltalk 34 5th February 2007 21:57
Installing OpenLaszlo with Tomcat using Virtual Host jacobhenry Installation/Configuration 5 7th November 2006 22:00


All times are GMT +2. The time now is 13:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.