In the /opt/lampp/etc/httpd.conf file I added this line under Listen 80
- Code: Select all
Listen 100
Then I removed the # from #Include etc/extra/httpd-vhosts.conf
- Code: Select all
# Virtual hosts
Include etc/extra/httpd-vhosts.conf
In /opt/lampp/etc/extra/httpd-vhost.conf I added the following...
- Code: Select all
<VirtualHost *:100>
ServerName localhost
DocumentRoot "/home/cam/Documents/Websites/100"
<Directory "/home/cam/Documents/Websites/100">
Options +Indexes +FollowSymLinks +Multiviews
Allow from all
Require all grante
</Directory>
</VirtualHost>
Now when I go to localhost:100 in my browser I get the following message...
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.39 (Unix) OpenSSL/1.0.2r PHP/7.1.28 mod_perl/2.0.8-dev Perl/v5.16.3
I tried changing the DocumentRoot and Directory to /opt/lampp/htdocs and it did work. So the cause of this is that XAMPP will not allow me to access any files in my Home folder. How do I fix this so it can access files in my Home folder and Documents?