Reputation: 9
I'm new to Apache. Following a tutorial, I am trying to set an alias in Apache to look and serve files from a folder (project). Other than htdocs, this was my code to create alias:
<IfModule alias_module>
Alias /project/ "C:/project/"
Alias /project "C:/project"
</IfModule>
<Directory "C:/project">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
This doesn't work and when I type localhost/project/ in browser, the browser throws access forbidden.
How do I work around it?
Upvotes: 1
Views: 152
Reputation: 127
You'll have to change your security settings on C:\xampp\apache\conf\httpd.conf The directory diretive must be on this file or it will always show the forbidden error.
Upvotes: 1