Solved

How to Serve Images In Apache Over a portal url

Posted on 2014-03-15
3
311 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
ID: 39951877
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
ID: 40040644
Currently we have changed our java code to dynamically serve images with the referred url.
0
 
LVL 4

Author Closing Comment

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

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 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