Apache2 case insensitive
We are running Apache2 2.2 on openSuSE 12.2 and have created an alias called "BAMWeb", that points to a directory. We do not want users to worry about the capitalization and want the alias to be case insensitive. I found post about a module called mod_speling. I loaded the module and verified that it was loaded using the "apache2ctl -M" command:
. . . setenvif_module (shared) ssl_module (shared) userdir_module (shared) php5_module (shared) reqtimeout_module (shared) speling_module (shared) mono_module (shared) Syntax OK It also said to define a Directive: CheckSpelling on I tried placing that in the httpd.conf file and restarted the server, but that did not work. I also tried it in the default-server.conf as well, but that also did not work. The documentation is a bit vague on where to put the directive in. Can someone point me in the right direction? Thanks, Keith |
I put it within the <Directory> section for my default site's webroot. Works pretty well, though not always as you expect.
|
Thank you for the quick reply. I put it in the following context in the httpd.conf file:
<Directory /> CheckSpelling on Options None AllowOverride None Order deny,allow Deny from all </Directory> Restarted apache2 (service apache2 restart) But I still must capaitalize the location. It is <fqdn>/BAMWeb. I am trying to be able to access it by using <fqdn/bamweb> or <fqdn>/Bamweb, etc... I also put it in the default-server.conf file within the DocuementRoot context, restarted, but still no change. I am sure it is a missed step that I am not seeing. other than loading the module, is there anything else I should have accomplished? Thanks, Keith |
Surely "/" is not your webroot? I think on Suse it would be like /srv/www/htdocs.
As far as I can remember there was nothing else to it, but I was installing on Debian. I don't think I've installed it on Suse ever. |
Yes it is /srv/www/htdocs. That is defined in the default-server.conf file, which is why I tried it there. Unfortunately, is did not work there either. I figured I would try it int he httpd.conf file as well and the / was the only thing defined there. Thank you for your responses though.
|
Ok, so in trying to figure this out more. I found out a few things. First we are using mono to run a .net application. In the httpd.conf file I posted earlier (the complete one), it shows the following:
AddMonoApplications default "/BAMWeb:/srv/www/htdocs/" <Location /BAMWeb> SetHandler mono </Location> The "/BAMWeb" is what we are trying to get case insensitive. I starting focusing on mono and found a setting called MONO_IOMAP that can be set. Although I set it in the httpd.conf it does not allow me to put in /bamweb or /bamweb. However it looks like actual files or directories become insensitive as I can enter Default.aspx or DEFAULT.ASPX or default.aspx as the index page. So it appears to be mono related. I just figured I would provide the latest on this issue. Thank you for your time in responding so far. Thanks, Keith |
All times are GMT -5. The time now is 10:37 AM. |