I am using Apache (httpd) on my CentOS and have deployed the Java / Struts web application on Tomcat6.
I am forwarding requests between Apache Tomcat using Mod_JK.
In order to do this job on SSL, I completed this question on the stack in order to configure httpd.conf, mod_jk.conf.
This works fine for the same web application when I called it using HTTP.
However, through HTTPS I get error 403. When I looked at the logs, I found the following entry
The directory index is prohibited by the Options directive: / var / lib / tomcat6 / webapps / myapp /, referer: https://my domain IP
I tried setting up the directory in httpd.conf as shown below, but getting the same error
<Directory "/var/lib/tomcat6/webapps/<myapp>"> Options +Indexes FollowSymLinks +ExecCGI AllowOverride AuthConfig FileInfo Order allow,deny Allow from all </Directory>
Please note that I have not made any changes to Tomcat Server.xml yet.
Any help.
Edit:
I created dummy index.html and saved it in the root folder of the application.
Then I requested the same URL from a web browser via HTTPS, guess what? I can see my index.html. However, HTTP is working correctly.
Now can someone tell me how I can direct apache so as not to search for any index.html , but redirect the request to tomcat directly.
Edit-2: When I tried to change the directory settings to "Indexes FollowSymLinks Includes ExecCGI", it started displaying directory listings.
Naved source share