All pastes #967918 Raw Edit

httpd.conf for mod_python/cobble

public text v1 · immutable
·published 2008-04-02 18:48 UTC
rendered paste body
# This configuration file allows cobbler data
# to be accessed over HTTP.

AliasMatch ^/cblr(.*)?$ "/var/www/cobbler$1"
AliasMatch ^/cobbler_track(.*)?$ "/var/www/cobbler$1"
AliasMatch ^/cobbler(.*)?$ "/var/www/cobbler$1"

<Directory "/var/www/cobbler">
    Options Indexes FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>

ProxyRequests off

ProxyPass /cobbler_api http://localhost:25151/
ProxyPassReverse /cobbler_api http://localhost:25151/

# TO DO: SSL

ProxyPass /cobbler_api_rw http://localhost:25152/
ProxyPassReverse /cobbler_api_rw http://localhost:25152/

BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On

# For misc CGI scripts

<Directory "/var/www/cgi-bin/cobbler">
    AllowOverride All
    Options None
    Order allow,deny
    Allow from all
</Directory>

# mod_python WebUI/services

<Directory "/var/www/cobbler/web/">
   AuthType Basic
   AuthName Cobbler
   Require valid-user
   SetHandler mod_python
   PythonAuthenHandler index
   PythonHandler index
   # disable?
   PythonDebug on
</Directory>