How to take care of case sensitivity in a URL

Discussion in 'Apache' started by winhung, Feb 25, 2013.

  1. #1
    Good day everyone ! I am new to Apache, so, please bear with me if my question does not make sense.

    I setup Apache 2.2.21 on a Win7 (32-Bit) Desktop with SVN 1.5.6 and WebSVN 2.3.3.
    My problem lies with navigating to view the repository thru websvn.
    I only want my users to be able to access the websvn thru this url, 'myservername/websvn' but they are able to access it thru other variations of the url, eg.'myservername/WebSvn', 'myservername/wEbSvN', 'myservername/WebSVN'.

    I am using CheckCaseOnly but it still does not solve the problem.
    Here's the code of my config file for websvn,

    #Alias /websvn/ "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/websvn/"
     
    <Directory /websvn/>
        Options FollowSymLinks
        CheckCaseOnly on
       
        #Redirect any requests to this page to the page u want
        FallbackResource  listing.php
       
        Order allow,deny
        Allow from all
       
        <IfModule mod_php4.c>
            php_flag magic_quotes_gpc Off
            php_flag track_vars On
        </IfModule>
     
        #Valid account to access ldap database.
        AuthLDAPBindDN "user@someplace.com"
        AuthLDAPBindPassword "password"
     
        #The LDAP query URL
        AuthLDAPURL "ldap://xxx:389/DC=x1,DC=x2,DC=3,DC=x4,DC=x5?sAMAccountName?sub?(objectClass=user)" NONE
     
        AuthType Basic
        AuthName "Websvn"
        AuthBasicProvider ldap
        AuthzLDAPAuthoritative off   
     
        Require ldap-user nutcase   
    </Directory>    
    Code (markup):
    Do tell me if you require more information, i would gladly provide.
     
    winhung, Feb 25, 2013 IP
  2. winhung

    winhung Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    Does CheckCaseOnly applies to both folder and file names ?
    In my case, i would like to use it on the folder's name but the documentation seems to imply it only works with file names eg. something.html..
     
    winhung, Feb 25, 2013 IP