INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Help on Mapping Local Directory for URL

Help on Mapping Local Directory for URL

(OP)
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.jp... 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.

CODE -->

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

Thanks
Jayaram

RE: Help on Mapping Local Directory for URL

How are you directing your traffic from Apache to Tomcat? If you're using mod_jk, by default it will send ALL traffic. If you want it to split the traffic so some goes to a local file system, and some goes to Tomcat, you'll need to make some config changes to mod_jk and Apache.

If you aren't using mod_jk, then I don't know. What do you find in your log files?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close