On 04.09.2016 10:22, Jayaram Ponnusamy wrote:
Dear All,
Our System Architecture is Apache WebServer-> Tomcat-> CMS System.
we stored all our files under /files in CMS and this folder is shared
FileSystem. So, WebServer also can access it.
Currently if any images has to load on the site then first Apache sending
request to Tomcat and Tomcat Communicate CMS to load the file from
specified folder. To avoiding delay, we want to load directly from
WebServer.
In Tomcat we added context for /files to point /opt/apps/shared/cms/files.
Similarly can create any context in WebServer to point some local directory?
For eg. if http://abc. com/files/xcxcxcxc/xcxcx/xcxcx then it has to be
load from WebServer's local directory (FileSystem). Kindly please let me on
this and sorry for my Bad English
Hi.
I believe that this is more a question for the "Apache httpd" webserver support
list, no ?
See here : http://httpd.apache.org/
and more specifically here : http://httpd.apache.org/lists.html#http-users
To give you a small pointer : what you want to do is probably a combination of :
http://httpd.apache.org/docs/2.4/mod/core.html#directory
and maybe
http://httpd.apache.org/docs/2.4/mod/core.html#location
and maybe
http://httpd.apache.org/docs/2.4/mod/mod_alias.html#alias
and you will probably also need to change the configuration directives in the Apache httpd
configuration, which currently forward the requests to Tomcat, so that /these/ requests
are no longer forwarded to Tomcat.
But you are not providing enough information for us to help you there.
Specifically, /how/ are the requests currently passed from Apache httpd to
Apache Tomcat ?
(There are several possible mechanisms, and you are not saying which one you
are using).
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org