ispCP - Board - Support
svn and trac on apache - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: svn and trac on apache (/thread-3002.html)



svn and trac on apache - prale - 04-12-2008 01:50 AM

Hello, it took me 3 days to find out that mod_evasive denied all subversion connections.
Please add this notice to the wiki, "how to make ispcp more secure", it's read-only so I can't change it.

Also I have a question.
My subversion runs with mod_python.
Now I added the subversion and trac virtualhost blocks in the /etc/apache2/apache2.conf, just above the include of the sites-available.

Actually I want to use it in a subdomain created by ispcp.
Is this possible? And where can I add the virtualhost block without the risk that ispcp overwrites it when regenerating the config?

Also how can I dissable mod_evasive on this subdomain? And still use it for all other (sub)domains?


RE: svn and trac on apache - Achmed - 04-12-2008 02:26 AM

prale Wrote:Actually I want to use it in a subdomain created by ispcp.
Is this possible? And where can I add the virtualhost block without the risk that ispcp overwrites it when regenerating the config?
/etc/apache2/ispcp/sub.your-domain.conf
You just have to add the location-part of your vhost-entry.
Code:
<Location /dev>
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend
   PythonPath "sys.path + ['/usr/share/trac']"
   PythonOption TracEnv /var/trac/wiki
   PythonOption TracUriRoot /dev
</Location>
<Location /dev/login>
   AuthType Basic
   AuthName "Login"
   AuthUserFile /var/www/virtual/domain.com/trac.htpasswd
   Require valid-user
</Location>
Thats my entry for Trac.
Set Location to root (/) did not work with login.


RE: svn and trac on apache - ephigenie - 04-12-2008 03:32 AM

For the sake of it :

I'll recommend using trac with fastcgi Wink

1) it can be run with the same user as the other scripts in your domain
2) it doesn't bloat apache that much as mod_python does (trac uses clearsilve template engine which uses up to 140M of Ram. If you're running that on apache/mpm_worker than each child (child not thread) will take the same amount since something in the code makes SHM unavailable between these processes.
Fastcgi / trac uses SHM area as such its ~140 (1x) Wink


RE: svn and trac on apache - Achmed - 04-12-2008 03:54 AM

Oki, thanks for that hint.


RE: svn and trac on apache - prale - 04-12-2008 04:18 AM

Thanks Achmed, it works Smile


RE: svn and trac on apache - prale - 04-19-2008 10:15 PM

What is the vhost config for running trac on fastcgi?
And can this also be done in /etc/apache2/ispcp/sub.your-domain.conf?