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:
Expand|Select|Wrap|Line Numbers
- <Directory "/path/to/parent/folder/in/question">
- AllowOverride None
- deny from all
- </Directory>
Expand|Select|Wrap|Line Numbers
- <Directory "/path/to/parent/folder/in/question">
- AllowOverride None
- allow from all
- </Directory>
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