Solved

How to Serve Images In Apache Over a portal url

Posted on 2014-03-15
3
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 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