Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I run a website and I am migrating to a Fedora 9 server (Apache) (From Win server 2k3 (Also Apache - Can you do double brackets? )). On my ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    4

    Post File Path Case Problem

    Hi,
    I run a website and I am migrating to a Fedora 9 server (Apache) (From Win server 2k3 (Also Apache - Can you do double brackets? )). On my Win server
    Code:
    http://mydomain.com/bob/pix.gif
    Would return the same as
    Code:
    http://mydomain.com/BoB/PIx.gif
    (Those images arn't real but its a good demonstration - And bob is a good name)
    However if the file was actualy called
    Code:
    /var/www/html/mysite/BOB/pix.gif
    I could only access in on my linux server using that case (Any of this making sense? )
    However, because I am an idiot, in my HTML some file paths are uppercase, some are lowercase and some are a mixture. Is there any way of changing a setting in Apache or Fedora so it doesn't pay attention to the case of the files, just opens them as it would on a Win system.
    Regards,
    Sam Rudge

  2. #2
    Just Joined!
    Join Date
    Feb 2009
    Location
    USA
    Posts
    21
    tou can add a module called mod_spelling but there will be a little performance drop with that, alternatively if all you need is to ignore capitalization you can add this to httpd.conf ...
    Code:
    RewriteEngine On
    RewriteMap lowercase int:tolower
    RewriteRule   ^(.*)$    ${lowercase:$1}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...