• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

mapping external url to internal url

 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to map http://localhost:8080/foo which is on apache. to my jboss server application which is http://192.168.1.97:18793/sbm/

I am able to get login page which is "http://localhost:8080/foo" which actually got response from "http://192.168.1.97:18793/sbm/bpmportal/lgoin.jsp" but when i try to login it give me resource not found which is "sbm/mytask/bizsite.task" but the url is actully not right it is "sbm/bpmportal/mytask/bizsite.task".

What needs to be done in order to correct that error. Though image is getting from right locaiton "http://localhost:8080/foo/bpmportal/css/theme01/images/savvion_business_manager_logo.gif". below is the httpd.conf file extract . any help will be appreciated.



<IfModule mod_proxy.c>

RewriteEngine On
#rewritemap pages txt:c:/pids.txt
#RewriteCond %{QUERY_STRING} ^p=([0-9]+)$
#RewriteRule ^/$ /${pages:%1¦NULL}? [R=301,L]
# let the server know that we were reached via /xyz and not
# via the physical path prefix /abc/def
#RewriteBase /foo
# now the rewriting rules
#RewriteRule ^/foo(.*) sbm [P]


ProxyRequests Off



<Proxy *>
Order deny,allow
Deny from all
Allow from all
</Proxy>
#proxyPass /foo/ !
ProxyPass /foo http://192.168.1.97:18793/sbm
ProxyPassReverse /foo http://192.168.1.97:18793/sbm

#ProxyPassMatch ^(/.*\./.*)$ http://192.168.1.97:18793/sbm
#ProxyRemote http://localhost:8080/foo http://192.168.1.97:18793/sbm

</IfModule>
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

nitin pokhriyal wrote:I am trying to map http://localhost:8080/foo which is on apache. to my jboss server application which is http://192.168.1.97:18793/sbm/

I am able to get login page which is "http://localhost:8080/foo" which actually got response from "http://192.168.1.97:18793/sbm/bpmportal/lgoin.jsp" but when i try to login it give me resource not found which is "sbm/mytask/bizsite.task" but the url is actully not right it is "sbm/bpmportal/mytask/bizsite.task".



Perhaps it would be better to ask in JBoss forum. Anyway it appears that "resource not found" is coming from JBoss, not from Apache. Does it work without Apache redirect? Anything in the log files?

By the way your post would be more easy to read is to put code tags around your code examples - http://faq.javaranch.com/java/UseCodeTags
 
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic