httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel-Stéphane SMORGRAV <Axel-Stephane.SMORG...@europe.adp.com>
Subject RE: [users@httpd] Case insensitive apache ?
Date Wed, 17 May 2006 09:16:31 GMT
I assume that your problem is due to the fact that the Windows file names are case insensitive,
whereas filenames on Unices are case sensitive. In that case I believe there is nothing much
you can do other than correcting all the links in the HTML code, unless you want to rewrite
all URL paths of the requests and make sure that all directory and file names under your DocumentRoot
are for example lowercase

If so, you need to use mod_rewrite. Make sure the module is loaded and add the following lines
to your configuration:

RewriteEngine On
RewriteMap canonical int:tolower
RewriteRule ^(.*)$ ${canonical:$1}

You would also need to make sure that the file and directory names in your DocumentRoot are
in the canonical form. You can do this by running the following command:

DOCUMENTROOT=<path to the httpd document root>
for f in `find $DOCUMENTROOT` ; do mv $f `echo $f | tr '[A-Z]' '[a-z]' ` ; done

-ascs

-----Original Message-----
From: Xavi Gracia [mailto:xavi@devir.es] 
Sent: Wednesday, May 17, 2006 10:58 AM
To: users@httpd.apache.org
Subject: [users@httpd] Case insensitive apache ?


Hi !

Sorry a lot if this question has been asked before but i have been unable to find any message
or webpage about.

I have just migrated to a apache linux server from a windows machine and it seems that some
of the people that was making the website doesn't follow the golden rule of the web design:
all in lower letters !!!... :-(

The result has been a lot of broken links in the new server.

Now, i have the option to check all the pages to put all in lower letters or maybe there's
a solution for apache to ignore lower / capital letters in the filenames?

Sorry again if this question has been asked before... (i have that feeling)

Thanks a lot for any help

p.s
If there's no way, maybe some of you would know a way to convert all the filenames to lower
letters in unix. Thanks !



Xavi Gracia
Dpto. Informática
Devir Iberia
Telf. 93 238 98 73
www.devir.es 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message