LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-19-2007, 05:39 AM   #1
GSMD
Member
 
Registered: Dec 2005
Distribution: Gentoo
Posts: 87

Rep: Reputation: 16
apache2: DocumentRoot, Location, mod_python


I'm trying to set up a config like
Code:
<VirtualHost *>
        ServerName my.own.host
        DocumentRoot /var/www/drupal
        
        Alias /munin /var/www/munin
        # more aliases ...

        <Location /dev/trac>
                SetHandler mod_python
                PythonInterpreter main_interpreter
                PythonHandler trac.web.modpython_frontend
                PythonOption TracEnv /var/www/dev/trac/
                PythonOption TracUriRoot /dev/trac
        </Location>
        <Location /dev/trac/login>
                AuthType Basic
                AuthName "Trac Authorization"
                AuthUserFile /var/www/auth
                Require valid-user
        </Location>

        <Location /dev/svn>
                DAV svn
                SVNPath /var/www/dev/svn/
        </Location>
So that Drupal serves the main CMS and those extra locations allow access SVN and a Trac instance.
Now, I may access SVN, yet pointing to http://my.own.host/dev/trac/ would lead to Drupal 404 error.
In case I comment DocumentRoot out, trac becomes accessible.

Now, what could be the point with DocumentRoot bloocking it?

TIA.
 
Old 07-19-2007, 08:09 AM   #2
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian, KUbuntu
Posts: 213

Rep: Reputation: 36
Try using DirectoryIndex in each Directory declaration, instead of DocumentRoot for the entire VirtualHost.
And a little question: żdid you closed the VirtualHost tag with </Virtualhost> at the end of the file/host declaration?
 
Old 07-20-2007, 01:27 PM   #3
GSMD
Member
 
Registered: Dec 2005
Distribution: Gentoo
Posts: 87

Original Poster
Rep: Reputation: 16
Thanks for your reply.
I'm not sure about DirectoryIndex as it only specifies the file that should be passed when a directory is requested. Does this have anything to do with Location?
Yes, the tag is closed.
 
Old 07-24-2007, 07:31 AM   #4
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian, KUbuntu
Posts: 213

Rep: Reputation: 36
What do you mean with this question? The file declared in DirectoryIndex will be the file the server will send when requesting the directory. And the location of client browser will remain unchanged (he won't know the name of the file he is watching).

And may be you want to add some Alias'es, like munin one, to tell the server where is each directory. If you don't do so, it won't let the client see the dev's directories.
 
  


Reply

Tags
documentroot, location


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
APACHE2 DocumentRoot does not exist for Vhost Wonderm00n Linux - Software 2 04-09-2010 09:33 PM
apache2 mod_python.publisher upload problem gd2shoe Linux - Server 0 06-28-2007 10:32 PM
apache2 on debian, DocumentRoot confusion andrews-mark Debian 2 03-10-2007 05:17 AM
mod_python segfaults apache2 fietske Slackware 1 07-19-2006 04:14 AM
Apache serving from unexpected DocumentRoot location Javadude Linux - Newbie 2 08-24-2003 07:51 AM


All times are GMT -5. The time now is 12:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration