Permissions for serving a folder over 2 different aliases

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paragpdoke
    New Member
    • Dec 2007
    • 62

    Permissions for serving a folder over 2 different aliases

    Hello Apache Experts.
    I am new to Apache httpd configuration and got stuck with one issue related to serving a folder in different manner over different aliases. Please find the details below.

    Apache version being used: Apache/2.2.11 (Unix) and Apache/2.2.14 (Win32).
    There is a folder (say /path/to/parent/folder/in/question) which inaccessible to clients using the following URL:
    http://myhost:myport/alias1/parent/folder/in/question
    I checked the conf/extra/app-alias1.conf file (which ultimately was included by additions.conf and therefore by httpd.conf) and found the following configuration:
    Code:
    <Directory "/path/to/parent/folder/in/question">
       AllowOverride None
       deny from all
    </Directory>
    So I created a new alias and added the following in the app-alias2.conf (again included in additions.conf - before addition of app-alias1.conf - and ultimately in httpd.conf):
    Code:
    <Directory "/path/to/parent/folder/in/question">
       AllowOverride None
       allow from all
    </Directory>
    Then I restarted httpd ("apachectl graceful" on Unix) and tried accessing the URL: http://myhost:myport/alias2/parent/folder/in/question

    But it was still inaccessible. So I changed LogLevel in httpd.conf to "debug" (it was "warn" earlier) and restarted again. The error log displayed:
    client denied by server configuration: /path/to/parent/folder/in/question

    So my question is: How do I serve a folder over another alias if it is denied from one ? I only have the permissions/directions to modify app-alias2.conf (except for the LogLevel and includes). Would this be doable without the need to modify app-alias1.conf ?

    Thanks in advance for any help,
    Parag Doke
  • paragpdoke
    New Member
    • Dec 2007
    • 62

    #2
    Any pointers anyone?

    Comment

    Working...