From owner-freebsd-questions Thu Oct 11 7:13:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dark4ce.com (dark4ce.com [194.109.74.197]) by hub.freebsd.org (Postfix) with ESMTP id 0A9B037B401 for ; Thu, 11 Oct 2001 07:13:33 -0700 (PDT) Received: (from freebsd@localhost) by dark4ce.com (8.11.6/8.11.6) id f9BEDTR47987 for freebsd-questions@freebsd.org; Thu, 11 Oct 2001 16:13:29 +0200 (CEST) (envelope-from freebsd) Date: Thu, 11 Oct 2001 16:13:27 +0200 From: Hanno Liem To: freebsd-questions@freebsd.org Subject: Help - Apache unexpected behaviour, redirects/rewrites Message-ID: <20011011161327.F30118@dark4ce.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, I'm puzzled. I have an (old) apache server of which I just took over administration. Hosts several virtual webservers, on seperate IP#s. Mod_rewrite is installed. There was an issue with directories and URL's when people don't enter / at the end: a well-known one which requires a rewrite, adding / at the end. Now the webserver behaves like this: Say that the URL should be this: http://my.webserver.com/mydir/ (there is an index.php3 in directory mydir) But people put this in: http://my.webserver.com/mydir Then, for some reason, apache sends a 301 (Permanently moved) to http://hostname/mydir ... which of course doesn't work! I turned off the Rewrite Engine for that virtual host, and it doesn't make any difference. I grepped the whole /usr/local/apache/conf dir for "redirect" and "rewrite". Nothing... It might have something to do with a reverse lookup somehow. This DNS server is misconfigured as well, I suspect. But I am a bit in the dark here. Any hints or help are appreciated and count towards your stash of Karma :-) Han To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message