473,378 Members | 1,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

apache case sensitive urls

usafshah
104 100+
hi

How can i make apache case in sensitive ? so that it should read www.website.com/file.html and www.website.com/FILE.HTML

The module mod_speling is already loaded in httpd.conf

LoadModule speling_module modules/mod_speling.so

but still its not reading .. is there any other thing to change ?
Feb 26 '07 #1
17 42400
Motoma
3,237 Expert 2GB
hi

How can i make apache case in sensitive ? so that it should read www.website.com/file.html and www.website.com/FILE.HTML

The module mod_speling is already loaded in httpd.conf

LoadModule speling_module modules/mod_speling.so

but still its not reading .. is there any other thing to change ?
I am assuming you are using Windows? If the Operating System is not case sensitive, then Apache cannot be.
Feb 26 '07 #2
usafshah
104 100+
well i'm using fedora .. which is case sensitive
Feb 26 '07 #3
Motoma
3,237 Expert 2GB
well i'm using fedora .. which is case sensitive
Do you have both files in the same directory? I can see no reason why if you have file.html and FILE.HTML in a directory, Apache would not be able to tell the difference...
Feb 26 '07 #4
usafshah
104 100+
no i mean .. if there is a file in caps FILE.HTML and apache should read it when i type file.html in small also.
Feb 27 '07 #5
Motoma
3,237 Expert 2GB
no i mean .. if there is a file in caps FILE.HTML and apache should read it when i type file.html in small also.
See, that's a limitation of the Operating System. The Linux OS differentiates between FILE.HTML and file.html and FilE.HtML. Therefore, Apache (using the operating system to open files) is case sensitive as well.
You may be able to use mod_rewrite in order to remove case sensitivity, but I do not know for sure.
Feb 27 '07 #6
usafshah
104 100+
i have checked through phpinfo(); it has loaded the following modules


core prefork http_core mod_so mod_auth_basic mod_auth_digest mod_authn_file mod_authn_alias mod_authn_anon mod_authn_dbm mod_authn_default mod_authz_host mod_authz_user mod_authz_owner mod_authz_groupfile mod_authz_dbm mod_authz_default util_ldap mod_authnz_ldap mod_include mod_log_config mod_logio mod_env mod_ext_filter mod_mime_magic mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy mod_proxy_balancer mod_proxy_ftp mod_proxy_http mod_proxy_connect mod_cache mod_suexec mod_disk_cache mod_file_cache mod_mem_cache mod_cgi mod_php5 mod_auth_mysql mod_proxy_ajp
Mar 1 '07 #7
michaelb
534 Expert 512MB
Did you enable mod_speling with directive CheckSpelling on in Apache configuration file?
Mar 11 '07 #8
usafshah
104 100+
CheckSpelling on

Worked for me :D thanks buddy
Mar 14 '07 #9
Hi,

I am having a similar problem where I to make Apache 2.2.4 Http Web server Case Sensitive on Windows platform.

I have development, staging and production environment where I have Apache 2.2.4 Http Web server installed. On development environment I have Windows OS and for staging and production I have Linux OS installed.

Now each time while deploying the files to staging and production from dev server I am facing problem. Apache on Linux is case sensitive therefore many of my links are broken after deployment to staging.

Now to trap this issue while developing the application, I want to make my devlopment environmant as case sensitive where I have Apache on windows server.

Could you please help?
May 19 '07 #10
Motoma
3,237 Expert 2GB
Did you try the solution already posted here?

Hi,

I am having a similar problem where I to make Apache 2.2.4 Http Web server Case Sensitive on Windows platform.

I have development, staging and production environment where I have Apache 2.2.4 Http Web server installed. On development environment I have Windows OS and for staging and production I have Linux OS installed.

Now each time while deploying the files to staging and production from dev server I am facing problem. Apache on Linux is case sensitive therefore many of my links are broken after deployment to staging.

Now to trap this issue while developing the application, I want to make my devlopment environmant as case sensitive where I have Apache on windows server.

Could you please help?
May 19 '07 #11
I Want to make Apache on Windows from Case In-Sensitive to Case Sensitive.
This is inverse of the above mentioned problem.
plz suggest..
Did you try the solution already posted here?
May 19 '07 #12
Motoma
3,237 Expert 2GB
Either way you want it, it is the same setting you need to manipulate. The instructions above are to make it case-insensitive, if you want it case-sensitive, just do the opposite.

I Want to make Apache on Windows from Case In-Sensitive to Case Sensitive.
This is inverse of the above mentioned problem.
plz suggest..
May 19 '07 #13
Either way you want it, it is the same setting you need to manipulate. The instructions above are to make it case-insensitive, if you want it case-sensitive, just do the opposite.
I tried it all and restarted the apache. But it didn't worked. Is it possible to make apache as case-sensitive on windows?

Thanks,
May 19 '07 #14
Motoma
3,237 Expert 2GB
I tried it all and restarted the apache. But it didn't worked. Is it possible to make apache as case-sensitive on windows?

Thanks,
You tried disabling mod_spelling in your httpd.conf file, and restarted apache?
May 20 '07 #15
You tried disabling mod_spelling in your httpd.conf file, and restarted apache?
Yes, I Commented the

LoadModule speling_module modules/mod_speling.so

as

#LoadModule speling_module modules/mod_speling.so

Then I restarted Apache. but stilll it can access test.php even though called with name tEsT.pHp
May 20 '07 #16
Motoma
3,237 Expert 2GB
Yes, I Commented the

LoadModule speling_module modules/mod_speling.so

as

#LoadModule speling_module modules/mod_speling.so

Then I restarted Apache. but stilll it can access test.php even though called with name tEsT.pHp
What installer did you use for setting up Apache and PHP?
May 21 '07 #17
What installer did you use for setting up Apache and PHP?
I have used apache_2.2.4-win32-x86-no_ssl.msi and php-5.2.1-win32-installer.msi
May 21 '07 #18

Sign in to post your reply or Sign up for a free account.

Similar topics

32
by: Elliot Temple | last post by:
Hi I have two questions. Could someone explain to me why Python is case sensitive? I find that annoying. Also, why aren't there multiline comments? Would adding them cause a problem of some...
9
by: Paul Smith | last post by:
This doesn't seem like it should be *that* difficult, but after quite some time trying to figure it out, I'm still banging my head against the wall. My objective is to examine the exact...
2
by: J. Muenchbourg | last post by:
I'm doing a few tests with simple .net scripts, and I noticed that I display the following error message at ErrMessage.Text if I don't enter "BLUE" in capital letters into my input textbox: ...
5
by: Alan Silver | last post by:
Hello, I've just spent ages debugging some cookie code that wasn't working, and have finally discovered that the code *was* working, but that the path used by cookies is case-sensitive. I was...
13
by: Tom Anderson | last post by:
Afternoon all, MacOS X seems to have some heretical ideas about the value of case in paths - it seems to believe that it doesn't exist, more or less, so "touch foo FOO" touches just one file,...
1
dhandava
by: dhandava | last post by:
Hi, I am using PHP to develop web applications on Apache web server installed in windows environment. I Want to make my environment as CASE SENSITIVE. Thanks,
1
dhandava
by: dhandava | last post by:
Hi, I have development, staging and production environment where I have Apache 2.2.4 Http Web server installed. On development environment I have Windows OS and for staging and production I have...
38
by: Bart | last post by:
Why is C case sensitive? I know it's a bit late to change it now but there would seem to be far more advantages in ignoring letter case in source code. In real life such a situation would be...
24
by: Gary Hasler | last post by:
I want apache to parse all .html files for php code. Our 'real' web server is rented from ICDsoft ( php 5 on Apache on Linux whatever), and their instruction is to add the following to the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.