httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arne Heizmann <>
Subject Re: [users@httpd] RewriteRule problems
Date Wed, 15 Jun 2005 12:40:19 GMT
Krist van Besien wrote:
> I get the impression that probably somewhere in your httpd config
> there is an access rule that forbids access to the /old URL, and that
> therefore the "403 Forbidden" gets triggered before everything else.

But the rewrite log shows that the rewrite module does process the URL 

> Do you have an "order allow,deny" statement somewhere?

Not that I can see. But to alleviate the need for guessing, I'll attach 
the httpd.conf below. I have changed the "ServerName" line, but 
everything else is unchanged. Two lines will get word-wrapped by my 
mailer (LogFormat and BrowserMatch), but it should be obvious that they 
are one line.

The line that exhibits the problem is the very last one, at the very bottom.

Thanks again for any help,
Arne Heizmann

File follows: ---------------------------------------------------------

ServerRoot "C:/Program Files/Apache Group/Apache2"
PidFile logs/
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
Listen 80
ServerName <removed>

LoadModule access_module modules/
LoadModule alias_module modules/
LoadModule autoindex_module modules/
LoadModule dir_module modules/
LoadModule log_config_module modules/
LoadModule mime_module modules/
LoadModule negotiation_module modules/
LoadModule setenvif_module modules/
LoadModule rewrite_module modules/
LoadModule proxy_module modules/

LoadModule php4_module "C:/php/php4apache2.dll"

AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .phtml


UseCanonicalName Off

DocumentRoot "C:/support"

<Directory />
     Options FollowSymLinks
     AllowOverride None
     Allow from all

<Directory "C:/support">
     Options Indexes FollowSymLinks
     AllowOverride None
     Order allow,deny
     Allow from all

DirectoryIndex index.php index.html

AccessFileName .htaccess

<Files ~ "^\.ht">
     Order allow,deny
     Deny from all

TypesConfig conf/mime.types

DefaultType text/plain

HostnameLookups Off

ErrorLog logs/error.log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" 
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

CustomLog logs/access.log common

ServerTokens Full

ServerSignature On

Alias /icons/ "C:/Program Files/Apache Group/Apache2/icons/"

<Directory "C:/Program Files/Apache Group/Apache2/icons">
     Options Indexes MultiViews
     AllowOverride None
     Order allow,deny
     Allow from all

IndexOptions FancyIndexing VersionSort

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

ForceLanguagePriority Prefer Fallback

AddDefaultCharset UTF-8

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

AddHandler type-map var

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

BrowserMatch "Microsoft Data Access Internet Publishing Provider" 
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully

RewriteEngine On
# RewriteLog "C:/support/conf/rewrite.log"
# RewriteLogLevel 9
RewriteRule ^/download/(\d+)/ /download.php?did=$1 [L]
RewriteRule ^/documents/(\d+)_ /document.php?did=$1 [R]
RewriteRule ^/download/ /index.php [R]
RewriteRule ^/documents/ /index.php [R]
RewriteRule ^/conf/ /index.php [R]
RewriteRule ^/archive/ /index.php [R]
RewriteRule ^/old/(.*) http://ukrbcsr01/$1 [P]

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.


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