I am working on a project build on spring boot. So now I am trying to access mp3 files deployed on apache webserver path /home/tomcat/webapps/example/WEB-INF/classes/static/public/example-content/Chapter-1/Audio/1.mp3. But I am getting 403 status saying forbidden error. I have configured my project for port 443 virtual host and given all permission to folders and files also.
Below is the virtual host configuration:
<VirtualHost *:443>
ServerName example.com
ServerAlias www.example.com
SSLEngine on
SSLCertificateFile /home/cert/example/ssl.cer
SSLCertificateKeyFile /home/cert/example/private.key
SSLCertificateChainFile /home/cert/example/caclient.cer
DocumentRoot /home/tomcat/webapps/example
<Directory /home/tomcat/webapps/example/WEB-INF/classes/static/public/example-content/Chapter-1/Audio>
Options -Indexes +FollowSymLinks +MultiViews
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ProxyRequests on
ProxyPass / http://localhost:9111/example/
ProxyPassReverse / http://localhost:9111/example/
ProxyPassReverseCookiePath /example /
ProxyPassReverseCookieDomain example.com www.example.com
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
</VirtualHost>
But still getting same error each time. I don't know where I am doing mistake. If you have any suggestions or solutions, please provide me.