Solved

How to Serve Images In Apache Over a portal url

Posted on 2014-03-15
3
301 Views
Last Modified: 2014-05-09
Hi Guru's,

Need some help. Here is my situtaion.

I have apache and Jboss on same machine with reverse proxy setup to serve images,css,js and other static files and the url I use to access is.

http://jboss_Apache_Machine_host_IP:80/myappcontext/myappname/Home
Example:
http://10.106.11.192/myappcontext/myappname/Home

Now while using this url for enabling SSO(I think its Oracle webcenter or radiant one sso) the SSO admin adds the above mentioned url to the portal as a hyper link. we login to portal and click on the link which gives us the logged in username and we let it get into the application. But here is the issue is the url changes when we access the application via portal's link. It becomes something like below:

http://portal_host_IP_address/portal/some_static_number/http%3B/myappcontext/userloginpage

Example: http://10.106.11.122/portal/server.pt/gateway/PTARGS_0_12018_4345_378/http%3B/10.106.11.192/myappcontext/myappname/Home

Now the issue is all the images are referring a link like below and throws a 404 error when we access via portal as we serve images and css,js as alias and document root in apache.

http://portal_host_IP_address:80/myapp_images/login_banner.gif

note: Here myapp_images is the alias name we use in apache to serve images.

This throws a 404 error when accessed via portal, but if we access the same url without portal(direct url i.e :http://jboss_Apache_Machine_host_IP:80/myapp_images/login_banner.gif) its coming up fine but here the requirement is to serve everything via portal url only as people who are not in intranet network also shall be able to access.

Please suggest how do it do it to make it work via portal url i.e http://portal_host_IP_address:80/myapp_images/login_banner.gif
0
Comment
Question by:Ramakanta Sahoo
  • 2
3 Comments
 
LVL 29

Expert Comment

by:fibo
Comment Utility
Item 1 on the checklist: are U sure that the URL written in your html / webapp are relative to the home page, and not complete http://?
Could you paste the jsp source code of one such link?
0
 
LVL 4

Accepted Solution

by:
Ramakanta Sahoo earned 0 total points
Comment Utility
Currently we have changed our java code to dynamically serve images with the referred url.
0
 
LVL 4

Author Closing Comment

by:Ramakanta Sahoo
Comment Utility
Had to do java code change for dynamically serve the images
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now