Skip to Content
avatar image
Former Member

redirection in web dispatcher

Dear Experts,

I have ABAP backend system and I need to open it to internet. Doing so, I have implemented web dispatcher that is running in DMZ. Up to this point everything went on as desired, but one thing.

When I call the URL http://teidom.com:60000 then it redirects to the target host with the local address http:// . teidom.local:8000/sap/bc/gui/sap/its/webgui. Hereby this is not possible to call the page from internet. This is working only in local network, not in internet. In order to call and view the page from internet, the address has to be intact with no address redirection.

Just to get you closer to understand the situation, here below I wrote down the parameters which I defined for Web Dispatcher (sapwebdisp.pfl).

SAPGLOBALHOST = WebServerRack

SAPSYSTEM = 02

INSTANCE_NAME = W02

DIR_CT_RUN = C:\WebDisp\NTI3867

DIR_EXECUTABLE = C:\WebDisp\NTI3867

#----


  1. Accesssability of Message Server

#----


rdisp/mshost = backsvr.teidom.local

ms/http_port = 8100

#----


  1. Configuration for medium scenario

#----


icm/max_conn = 500

icm/max_sockets = 1024

icm/req_queue_len = 5003

icm/min_threads = 10

icm/max_threads = 50

mpi/total_size_MB = 80

#----


  1. SAP Web Dispatcher Ports

#----


#icm/server_port_0 = PROT=HTTP,PORT=81$$

icm/server_port_0 = PROT=HTTP,PORT=60001

icm/HTTP/redirect_0= PREFIX=/, PORT=8000, PROT=HTTP, TO=/sap/bc/gui/sap/its/webgui, HOST=backsvr.teidom.local

Kind Regards,

Taner Guler

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 15, 2008 at 08:34 AM

    Hi Taner,

    I think you are asking to the browser to connect directly to the 8000 port of the internal server whic is obviously not possible because of the firewall.

    It seems to me that you make a confusion between an URL redirect and an URL rewrite.

    The redirect is sent to the browser as a new URL.

    Did you try something like

    icm/HTTP/redirect_0= PREFIX=/, TO=/sap/bc/gui/sap/its/webgui

    You just want the browser to change the URL from / to /sap/bc/gui/sap/its/webgui but don't waant to change anything for the host and port from the web dispatcher because it is used as a reverse proxy.

    Regards,

    Olivier

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Matt Fraser

      Hi Matt,

      It is very kind of you commenting on the subject.

      I just want to be sure of the problem that I am facing. My problem is when I call the URL http://teidom.com:60000 from the internet; it is supposed to view the page (information) from ABAP system. But it couldn't.

      Web dispatcher is running on the host named 'webdispsvr'

      In the firewall I set port 60000 open from internet to web dispatcher server

      And in the other firewall (at the back) I set port 8000 open to R3 ABAP system which supplies information to internet.

      After setting up the web dispatcher profile according to (thanks Olivier) instructions from help.sap.com

      At next stage I started to test

      First I tested it in local by URL http://webdispsvr:60000 it works and web browser views the ABAP login windows. From this point of the subject one thing that took my attention was, after pushing enter button for URL http://webdispsvr:60000 then it directly turns to address URL http:// . teidom.local:8000/sap/bc/gui/sap/its/webgui -- is a host of where R3 ABAP system runs on (the address redirects to local address which is not wanted situation in the internet as long as it redirects to local URL address)

      Second test was in the internet

      Behaviour of the system is same nothing changed

      When I call URL http://teidom.com:60000, as it happens in local test, it redirects the URL to http:// . teidom.local:8000/sap/bc/gui/sap/its/webgui for this reason page could not be viewed when it is called from the internet.

      I hope above information is clear enough to get you understand how bad situation I am in.

      Isn’t there a way out of this struggle?

      Thanks all of you for your great contribution to the situation.

      Regards,

      Taner