httpd subdomains and <Location> directive

datamgmt

New member
Joined
Apr 11, 2009
Messages
2
Hi,

I want to add a <Location> directive to a virtual domain.

<Location /datamgmt/trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /datamgmt/trac
PythonOption TracUriRoot /datamgmt/trac
SetEnv PYTHON_EGG_CACHE /datamgmt/tmp
</Location>

This is to support the TRAC application.

I can get to the CMD_CUSTOM_HTTPD and even enter the information but this adds it to every sub-domain in the file. How/where can I enter this for the domain.

Any suggestions/help please?
 
Two ways I can think of; both require that the server belongs to you and that you have full admin/root rights. If it's not your server you need to discuss it with your hosting provider.

1) you can add conditional code to the template.

2) you can modify the user-level httpd.conf file manually from the shell, and then chattr it so the system cannot ever overwrite it.

Jeff
 
I've added it as a whole extra (separate) domain and this appears to make it all work
 
Back
Top