LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-15-2005, 10:03 AM   #1
snip128
Member
 
Registered: Jan 2004
Location: Delaware
Distribution: gentoo
Posts: 96

Rep: Reputation: 15
is it possible to make apache2 non-case sensitive


yea, i need apache to not be case-sensitive with the file names...im trying to use a script (.asp file) to list the contents of a directory, but when i click on a link it says its not found...because...the script displays everything in lowercase...so...if there is....please tell me =)

thx in advance (it might take me a while to reply, i won't have internet for a few days...)

edit: also...quick question...should be easy...how do you change the default file it loads? (i.e. index.html)

Last edited by snip128; 07-15-2005 at 12:07 PM.
 
Old 07-15-2005, 05:00 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Re: is it possible to make apache2 non-case sensitive

Quote:
Originally posted by snip128
yea, i need apache to not be case-sensitive with the file names...im trying to use a script (.asp file) to list the contents of a directory, but when i click on a link it says its not found...because...the script displays everything in lowercase...so...if there is....please tell me =)

thx in advance (it might take me a while to reply, i won't have internet for a few days...)
Apache is case-sensitive, but it just passes the request onto the filesystem. You could try using a case-insensitive filesystem like VFAT to store your scripts.

mod_rewrite can translate filenames using something like a Perl script; something like. For this you'll need all filenames to be in lower-case. See the mod_rewrite file, but here's a complete Perl script you can use to do this:
Code:
#!/usr/bin/perl -n -e 'print lc $_'
Google says you can also use a Samba server to make a fully case-insensitive server: http://linux.omnipotent.net/article....ticle_id=11710

By the way, the URI specification says that URLs are case-sensitive, except for the machine-name part. One issue you might see with this is that http://machine/path/to/file.html and http://machine/path/to/File.html will be cached seperately by proxies, which could make things inefficient and result in your server taking more hits than it needs. This doesn't usually apply to scripts with dynamic content, because these are usually re-fetched anyway.

Quote:
edit: also...quick question...should be easy...how do you change the default file it loads? (i.e. index.html)
See http://httpd.apache.org/docs/mod/mod...directoryindex
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is apache case-sensitive? browny_amiga Linux - Software 2 06-21-2004 01:57 PM
Why is linux case sensitive? Jestrik Linux - General 9 12-16-2003 07:05 AM
mySQL LIKE search is case sensitive? icepig Linux - Software 4 11-14-2003 04:29 PM
case sensitive groupadd? sysmaster Linux - General 0 07-28-2003 04:53 AM
case-sensitive issue david_wliu Linux - General 4 03-06-2003 10:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration