hey list!
Having a slight issue I was hoping to bounce off of you. I genuinely appreciate
your input. I am attempting to setup a an apache rewrite that automatically
redirects the user to the cobbler page.
Here is what I've tried:
## 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 GNU/Linux
## 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>
ServerName cobbler.summitnjhome.com
ServerAlias www.cobbler.summitnjhome.com
# 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]
</LocationMatch>
<Location "/cobbler_web">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE settings
# 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
</Location>
</VirtualHost>
## access logs (nothing unusual when hitting cobbler.summitnjhome.com)
192.168.1.18 - admin [21/Apr/2011:16:00:44 -0400] "GET / HTTP/1.1" 200 - "-"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009033100
Ubuntu/9.04 (jaunty) Firefox/3.0.8"
192.168.1.18 - admin [21/Apr/2011:16:11:28 -0400] "GET / HTTP/1.1" 200 - "-"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009033100
Ubuntu/9.04 (jaunty) Firefox/3.0.8"
## error logs (also nothing unusual when hitting cobbler.summitnjhome.com)
[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!
tim
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler