Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 99CA61602 for ; Fri, 22 Apr 2011 04:42:01 +0000 (UTC) Received: (qmail 65931 invoked by uid 500); 22 Apr 2011 04:41:57 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 65627 invoked by uid 500); 22 Apr 2011 04:41:57 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 65619 invoked by uid 99); 22 Apr 2011 04:41:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Apr 2011 04:41:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.228.39.212] (HELO mail.jokefire.com) (66.228.39.212) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Apr 2011 04:41:49 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.jokefire.com (Postfix) with ESMTP id 409804E4DE for ; Fri, 22 Apr 2011 04:41:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at jokefire.com Received: from mail.jokefire.com ([127.0.0.1]) by localhost (mail.jokefire.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sEGqYZuUopcR for ; Fri, 22 Apr 2011 04:41:28 +0000 (UTC) Received: from mail.jokefire.com (mail.jokefire.com [66.228.39.212]) by mail.jokefire.com (Postfix) with ESMTP id B39AB4E4DD for ; Fri, 22 Apr 2011 04:41:28 +0000 (UTC) Date: Fri, 22 Apr 2011 04:41:28 -0000 (UTC) From: Tim Dunphy To: users@httpd.apache.org Message-ID: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [71.187.203.194] X-Mailer: Zimbra 7.1.0_GA_3140 (ZimbraWebClient - FF3.0 (Linux)/7.1.0_GA_3140) Subject: [users@httpd] apache rewrites 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 offer.. ## 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) 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 RewriteEngine on RewriteRule ^(.*) http://%{SERVER_NAME}/%{REQUEST_URI} [R,L] 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 ## 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 for any input you may have! tim --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org