httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Dunphy <>
Subject [users@httpd] apache rewrites
Date Fri, 22 Apr 2011 04:41:28 GMT
hello list!!

I am attempting to setup apache rewrites for a new cobbler server. however this doesn't seem
to be working the way I have this setup, and I would appreciate any input you may have to

## machine info

[root@VIRCENT14 cobbler]# cat /etc/redhat-release 
CentOS release 5.6 (Final)

[root@VIRCENT14 cobbler]# uname -a
Linux VIRTCENT14 2.6.18-238.9.1.el5xen #1 SMP Tue Apr 12 18:53:56 EDT 2011 x86_64 x86_64 x86_64

## attempting to get apache url rewrites to work

       RewriteEngine on                                                 # <-- this line
       RewriteRule ^(.*) http://%{SERVER_NAME}/%{REQUEST_URI} [R,L]     # <-- and this
line are in my vhost

## namevirtualhost is in httpd.conf

NameVirtualHost *:80
# NOTE: NameVirtualHost cannot be used without a port specifier

## vhost conf file

# This configuration file enables the cobbler web
# interface (django version)

<VirtualHost *:80>

# Do not log the requests generated from the event notification system
SetEnvIf Request_URI ".*/op/events/user/.*" dontlog
# Log only what remains
CustomLog logs/access_log combined env=!dontlog

<LocationMatch "^/cobbler/web/*">
       RewriteEngine on
       RewriteRule ^(.*) http://%{SERVER_NAME}/%{REQUEST_URI} [R,L]

<Location "/cobbler_web">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    # PythonOption django.root /cobbler_web
    PythonDebug On
    PythonPath "['/usr/share/cobbler/web/'] + sys.path"
    AuthBasicAuthoritative Off
    AuthType basic
    AuthName "Cobbler"
    Require valid-user
    PythonAuthenHandler cobbler_web.views


## access logs (nothing unusual when hitting - admin [21/Apr/2011:16:00:44 -0400] "GET / HTTP/1.1" 200 - "-" "Mozilla/5.0
(X11; U; Linux i686; en-US; rv: Gecko/2009033100 Ubuntu/9.04 (jaunty) Firefox/3.0.8" - admin [21/Apr/2011:16:11:28 -0400] "GET / HTTP/1.1" 200 - "-" "Mozilla/5.0
(X11; U; Linux i686; en-US; rv: Gecko/2009033100 Ubuntu/9.04 (jaunty) Firefox/3.0.8"

## error logs (also nothing unusual when hitting

[Thu Apr 21 15:59:58 2011] [notice] mod_python: (Re)importing module 'services'
[Thu Apr 21 16:00:02 2011] [notice] mod_python: (Re)importing module 'services'
[Thu Apr 21 16:00:07 2011] [notice] mod_python: (Re)importing module 'services'
[Thu Apr 21 16:00:12 2011] [notice] mod_python: (Re)importing module 'services'
[Thu Apr 21 16:00:16 2011] [notice] mod_python: (Re)importing module 'services'

thanks in advance for any input you may have!

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message