Go to Post If the world was like ChiefDelphi, people would be more eager to help out, offer advice and encourage each other to better things... not a bad world, that. - MissInformation [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-08-2005, 17:08
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Apache on Linux

I was forced to move from hosting my site/files and a bunch of friends on my Windows desktop to my Linux (Ubuntu) laptop. (Apache on both.)

However, I'm now running into a bunch of 404 errors because of Linux case sensitivity. Yes, it's technically possible to rename things to make it work, but there are several hundred (thousand?) files which may or may not need changing. Is there any Apache mod to make it case insensitive?

IE, I need /file.HTML to go to the correct file of /file.html. Yeah, I could setup a bunch of Apache aliases or symbolic links, but there's a lot of files out there...

Hoping to see some insensitivity soon,
Ryan
__________________

  #2   Spotlight this post!  
Unread 08-08-2005, 18:17
Adam Richards's Avatar
Adam Richards Adam Richards is offline
I'm baaaaaaack.
FRC #1902 (Exploding Bacon)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Orlando, FL
Posts: 1,062
Adam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond repute
Send a message via AIM to Adam Richards
Re: Apache on Linux

Umm, AFAIK, file.html and file.HTML are considered different files on unix computers. If Apache were to remove case sensitivity, the confusion over which file to select in a certain directory would be very problematic.
  #3   Spotlight this post!  
Unread 08-08-2005, 18:22
Timothy D. Ginn's Avatar
Timothy D. Ginn Timothy D. Ginn is offline
I check here maybe once a year.
no team
 
Join Date: Apr 2003
Rookie Year: 2002
Location: Port Perry, ON. Canada
Posts: 247
Timothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to all
Send a message via ICQ to Timothy D. Ginn Send a message via AIM to Timothy D. Ginn Send a message via MSN to Timothy D. Ginn Send a message via Yahoo to Timothy D. Ginn
Re: Apache on Linux

mod_speling (yes, it is deliberately misspelled) should help you out (case is one of the things it can take care of)... or, alternatively, take a look at http://linux.omnipotent.net/article....ticle_id=11710 (which isn't actually a module; but, rather a trick in that you can use Samba+Apache to make things case-insensitive)
__________________
Alumni of FRC Team 1006
Former mentor of Full Lego Alchemist (FLL 5621) - Sempar School / Computing Students' Association of Queen's University
  #4   Spotlight this post!  
Unread 08-08-2005, 18:24
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Apache on Linux

Quote:
Originally Posted by Adam Richards
Umm, AFAIK, file.html and file.HTML are considered different files on unix computers. If Apache were to remove case sensitivity, the confusion over which file to select in a certain directory would be very problematic.
Yeah, I know, but there are no files which differ only in case in the directories we're talking about here (because they came from a Windows box), so I don't have to worry about that...

I just want to know if there is a way to have it ignore case in an incomming URL (so, select a file which has mathing letters, but ignore case). Maybe, as an alternative, is there some way (using URL rewrites or such) to translate all URL's into lowercase?

--EDIT--
Thanks, Tim. That fixes it for me.
__________________


Last edited by Ryan M. : 08-08-2005 at 18:39.
  #5   Spotlight this post!  
Unread 08-08-2005, 22:22
evulish's Avatar
evulish evulish is offline
1010100
AKA: Grant Harding
#0084 (WATTNESS (bot: Chuck))
Team Role: Alumni
 
Join Date: Jul 2002
Location: Towanda/Wysox, PA
Posts: 1,434
evulish is just really niceevulish is just really niceevulish is just really niceevulish is just really nice
Send a message via AIM to evulish
Re: Apache on Linux

Are all the filenames a certain way? Like are they all lowercase? If so, you could use mod_rewrite to 'fix' that.
__________________
I'm a professional web developer. I'm good with PHP, Perl, Java/JSP, some RoR, XML, Javascript (AJAX as well), (x)HTML, CSS, etc.. Validated code is good; fully cross-browser code is better (you comply to your users and the software they use, not the other way around. Sorry!)
  #6   Spotlight this post!  
Unread 09-08-2005, 06:35
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Apache on Linux

Quote:
Originally Posted by evulish
Are all the filenames a certain way? Like are they all lowercase? If so, you could use mod_rewrite to 'fix' that.
They aren't, but there are tools to do that automatically, so that was my next choice. I was reluctant to do that because most of my friends hook up through my FTP (don't jump on me about FTP) automatically through things like Dreamweaver, so changing case might have broken some of that.
__________________

Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
So many versions of Linux, what do I do!!! Ashley Weed IT / Communications 32 15-10-2005 08:42
Let's have Linux Robots Next Year! jdong Control System 52 22-08-2005 09:40
Using Linux? Raven_Writer IT / Communications 41 05-07-2004 16:53
Linux SteveC116 3D Animation and Competition 22 25-03-2004 15:07
Linux And Windows XP Raven_Writer Chit-Chat 4 06-08-2003 18:53


All times are GMT -5. The time now is 09:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi