You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jayaram Ponnusamy <ja...@gmail.com> on 2016/11/13 09:49:37 UTC

[users@httpd] Help on Mapping Local Directory for URL

Dear All,

We are using Java Based CMS with Tomcat (Application Server) & Apache HTTP
for WebServer.
When the User hit the URL, the request will flow blow below:
F5->WebServer->Tomcat->CMS & DataBase.

All Static Files are stored under shared filesystem:
/opt/apps/shared/cms/docroot and mounted on all servers. Currently if any
requests come it will goes to Tomcat Server only. Instead of that we want
to catch the URL at WebServer Level and redirect to WebServer's Shared
location.

eg: http://cmstest.com/file_source/cms/about/image1.jpg then it should pick
the image from WebServer's Local path:
/opt/apps/shared/cms/docroot/cms/about/image1.jpg.

I tried to use Directory, Alias but its not working, Kindly please help on
this.

Alias "/file_source" "/opt/apps/shared/cms/docroot"

Thanks
Jayaram

Re: [users@httpd] Help on Mapping Local Directory for URL

Posted by Eric Covener <co...@gmail.com>.
On Sun, Nov 13, 2016 at 4:49 AM, Jayaram Ponnusamy
<ja...@gmail.com> wrote:
> Currently if any requests come it will goes to Tomcat Server only.

You need to amend the configuration to not pass all requests to
tomcat.  What did you try?

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org