Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic