Suppose:
The Httpd
's Web publication folder is assigned according:
Edit /usr/local/httpd/conf/httpd.conf
file:
DocumentRoot "/usr/local/WebFiles/Html"
<Directory "/usr/local/WebFiles/Html">
The Tomcat
's Web publication folder is assigned according:
Edit /usr/local/tomcat/conf/server.xml
file:
<Host name="localhost" appBase="/usr/local/WebFiles"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="Html"
reloadable="true" />
Question 1:
Is it possible share the Web publication folder between Tomcat and Httpd (or to use the same)?
Tomcat has the group and user named tomcat
.
Httpd has the group and user named apache
.
Question 2:
How the permission for both users (tomcat
and apache
) must be established for /usr/local/WebFiles/Html
folder and files?