Apache2 Virtual Host with ScriptAlias returning 403
- by sissonb
I am trying to reference my libs directory which is a sibling directory to my DocumentRoot.
I am using the following ScriptAlias to try to accomplish this.
ScriptAlias /libs/ "../libs"
But when I go to example.com/libs/ I get a the following error
Forbidden
You don't have permission to access /libs/ on this server
I am able to view the libs directory using the following configuration so I don't think it's a file permission error.
<VirtualHost *>
ServerName example.com
ServerAlias www.example.com
DocumentRoot C:/www/libs
<VirtualHost *>
More relevant httpd.cong setting below
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "C:/www">
Options Indexes FollowSymLinks
AllowOverride None
Order Deny,Allow
Deny from none
Allow from all
</Directory>
NameVirtualHost *
<VirtualHost *>
ServerName example.com
ServerAlias www.example.com
DocumentRoot C:/www/example
ScriptAlias /libs/ "../libs"
<Directory "C:/www/libs">
Options Indexes FollowSymLinks
AllowOverride None
Options +ExecCGI
Order Deny,Allow
Deny from none
Allow from all
</Directory>
</VirtualHost>