logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Oracle Iplanet migration to Apache2
Author
joeadmin



Joined: 14 Mar 2016
Posts: 6
Location: US,NC

PostPosted: Mon 14 Mar '16 15:56    Post subject: Oracle Iplanet migration to Apache2 Reply with quote

Server version: Apache/2.4.18 (Unix)
Solaris 11.1

New to Apache. Ive been able to get most reverse proxys to work.

Need help in migrating iplanet obj.conf entries.
Not sure of placement of NAMETRANS, in httpd.conf

NameTrans fn="map" from="/fcgi" name="reverse-proxy-/fcgi" to="http:/fcgi"
<If $path =~ "^/om(|/.*)$">

NameTrans fn="rewrite" root="/export/home/update/bin/test.cgi" path="$1"
</If>

NameTrans fn="pfx2dir" from="/bin" dir="/export/home/update/bin" name="cgi"

NameTrans fn="map" from="/app" name="reverse-proxy-/app" to="http:/app"

NameTrans fn="map" from="/jsp" name="reverse-proxy-/jsp" to="http:/jsp"

NameTrans fn="map" from="/wm" name="reverse-proxy-/wm" to="http:/wm"
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Tue 15 Mar '16 19:07    Post subject: Reply with quote

What does the NAMETRANS do? Alias? Or reverse proxy stuff or URL rewriting?
Back to top
joeadmin



Joined: 14 Mar 2016
Posts: 6
Location: US,NC

PostPosted: Mon 21 Mar '16 14:03    Post subject: Reply with quote

Its a URL redirection. Its basically saying
if /om/ (http://www.foo.com/om/) is entered after the URL, run the the test.cgi

<If $path =~ "^/om(|/.*)$">
NameTrans fn="rewrite" root="/export/home/update/bin/test.cgi" path="$1"
</If>

Apache doesn't like the $ sign
thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Mon 21 Mar '16 17:46    Post subject: Reply with quote

In most cases I would use simply mod rewrite. But with cgi you may wanna use ScriptAliasMatch[1]


[1] https://httpd.apache.org/docs/current/mod/mod_alias.html#scriptaliasmatch
Back to top


Reply to topic   Topic: Oracle Iplanet migration to Apache2 View previous topic :: View next topic
Post new topic   Forum Index -> Apache