LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-14-2013, 10:02 PM   #1
NetEng1
Member
 
Registered: Aug 2011
Distribution: ubuntu
Posts: 40

Rep: Reputation: Disabled
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
 
Old 02-14-2013, 10:31 PM   #2
lykwydchykyn
Member
 
Registered: Mar 2006
Location: Tennessee, USA
Distribution: Debian, Ubuntu
Posts: 135

Rep: Reputation: 36
I put it within the <Directory> section for my default site's webroot. Works pretty well, though not always as you expect.
 
Old 02-15-2013, 07:24 AM   #3
NetEng1
Member
 
Registered: Aug 2011
Distribution: ubuntu
Posts: 40

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-15-2013, 09:59 AM   #4
lykwydchykyn
Member
 
Registered: Mar 2006
Location: Tennessee, USA
Distribution: Debian, Ubuntu
Posts: 135

Rep: Reputation: 36
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.
 
Old 02-15-2013, 11:24 AM   #5
NetEng1
Member
 
Registered: Aug 2011
Distribution: ubuntu
Posts: 40

Original Poster
Rep: Reputation: Disabled
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.
 
Old 02-18-2013, 09:39 AM   #6
NetEng1
Member
 
Registered: Aug 2011
Distribution: ubuntu
Posts: 40

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



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
gcc case insensitive nav_linux Programming 1 07-11-2010 11:29 PM
Apache Case Insensitive RiceAnis Red Hat 4 12-03-2009 08:45 AM
Case insensitive URL's subhashiniganeshan Linux - Server 1 10-08-2009 12:35 AM
Copying files from case-sensitive Linux to case-insensitive Windows via CIFS? SlowCoder Linux - General 4 05-07-2008 07:03 PM
Case-insensitive CVS? sundialsvcs Programming 2 06-25-2006 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:28 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