Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

Trac ignore certain URLs?

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


symbiat at gmail

Nov 14, 2007, 1:39 PM

Post #1 of 5 (159 views)
Permalink
Trac ignore certain URLs?

I want to have a particular URL under a Trac site to be ignored by
Trac. I have an <Alias> stanza in my vhost config that points that URL
to a folder outside of Trac but how do I tell Trac to not handle that
URL? (Right now, I get an error saying Trac couldn't find a handler
for that URL).


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Graham.Dumpleton at gmail

Nov 14, 2007, 1:53 PM

Post #2 of 5 (151 views)
Permalink
Re: Trac ignore certain URLs? [In reply to]

On Nov 15, 8:39 am, Eno <symb...@gmail.com> wrote:
> I want to have a particular URL under a Trac site to be ignored by
> Trac. I have an <Alias> stanza in my vhost config that points that URL
> to a folder outside of Trac but how do I tell Trac to not handle that
> URL? (Right now, I get an error saying Trac couldn't find a handler
> for that URL).

Presuming you are using mod_python, use something like:

Alias /some/url /some/path

<Location /some/url>
SetHandler None
</Location>

If you are using mod_wsgi, then the Alias directive should be
sufficient, you just need to ensure you have it appearing before the
WSGIScriptAlias for Trac.

So, how are you hosting Trac under Apache? What method you are using
will determine what you need to do.

Graham


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


symbiat at gmail

Nov 14, 2007, 2:26 PM

Post #3 of 5 (148 views)
Permalink
Re: Trac ignore certain URLs? [In reply to]

On Nov 14, 4:53 pm, Graham Dumpleton <Graham.Dumple...@gmail.com>
wrote:

> Presuming you are using mod_python, use something like:
>
> Alias /some/url /some/path
>
> <Location /some/url>
> SetHandler None
> </Location>
>
> If you are using mod_wsgi, then the Alias directive should be
> sufficient, you just need to ensure you have it appearing before the
> WSGIScriptAlias for Trac.
>
> So, how are you hosting Trac under Apache? What method you are using
> will determine what you need to do.

Thanks,


We are using mod_python under Apache2. I have the following in the
vhost config (which doesn't work):

Alias /files /home/www/files

<Directory /home/www/files>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
IndexOptions FancyIndexing
IndexOrderDefault Descending Date
</Directory>

<Location /files>
SetHandler None
</Location>

<Location />
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /usr/local/trac
PythonOption TracUriRoot /
PythonInterpreter main_interpreter
</Location>

<Location /login>
AuthType Basic
AuthName "Trac Server"
AuthUserFile /usr/local/trac/.htpasswd
Require valid-user
</Location>

<Directory "/usr/local/trac">
Order allow,deny
Allow from all
</Directory>




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Graham.Dumpleton at gmail

Nov 14, 2007, 2:51 PM

Post #4 of 5 (149 views)
Permalink
Re: Trac ignore certain URLs? [In reply to]

On Nov 15, 9:26 am, Eno <symb...@gmail.com> wrote:
> On Nov 14, 4:53 pm, Graham Dumpleton <Graham.Dumple...@gmail.com>
> wrote:
>
> > Presuming you are using mod_python, use something like:
>
> > Alias /some/url /some/path
>
> > <Location /some/url>
> > SetHandler None
> > </Location>
>
> > If you are using mod_wsgi, then the Alias directive should be
> > sufficient, you just need to ensure you have it appearing before the
> > WSGIScriptAlias for Trac.
>
> > So, how are you hosting Trac under Apache? What method you are using
> > will determine what you need to do.
>
> Thanks,
>
> We are using mod_python under Apache2. I have the following in the
> vhost config (which doesn't work):
>
> Alias /files /home/www/files

What if you change this to:

Alias /files/ /home/www/files/

Graham

> <Directory /home/www/files>
> AllowOverride FileInfo AuthConfig Limit
> Options MultiViews Indexes SymLinksIfOwnerMatch
> <Limit GET POST OPTIONS PROPFIND>
> Order allow,deny
> Allow from all
> </Limit>
> IndexOptions FancyIndexing
> IndexOrderDefault Descending Date
> </Directory>
>
> <Location /files>
> SetHandler None
> </Location>
>
> <Location />
> SetHandler mod_python
> PythonHandler trac.web.modpython_frontend
> PythonOption TracEnv /usr/local/trac
> PythonOption TracUriRoot /
> PythonInterpreter main_interpreter
> </Location>
>
> <Location /login>
> AuthType Basic
> AuthName "Trac Server"
> AuthUserFile /usr/local/trac/.htpasswd
> Require valid-user
> </Location>
>
> <Directory "/usr/local/trac">
> Order allow,deny
> Allow from all
> </Directory>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


symbiat at gmail

Nov 15, 2007, 7:02 AM

Post #5 of 5 (151 views)
Permalink
Re: Trac ignore certain URLs? [In reply to]

On Nov 14, 5:51 pm, Graham Dumpleton <Graham.Dumple...@gmail.com>
wrote:

> What if you change this to:
>
> Alias /files/ /home/www/files/

Didn't seem to make any difference. (I also tried this with and
without a similar change to the <Location> stanza



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.