Solved

How to Serve Images In Apache Over a portal url

Posted on 2014-03-15
3
323 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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 don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

623 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