Tagarchief: web dispatcher

SAP Web Dispatcher IP restriction

For a client I was investigating how to apply ip restriction to web services on Netweaver. I found out that ip filtering on webservice level ( in code ) was not an option so I investigated ip restriction on the Web dispatcher. This will only work if the NetWeaver AS Java is only connected to through the web dispatcher.

The following configuration has to be done on the webdispatcher to enable ip restriction:

1. Add the following line to your web dispatcher profile:
icm/HTTP/auth_0 = PREFIX=/,PERMFILE=permissions.txt

2. Create a permissions.txt file with the following format:
#P/D/S <URI pattern$gt; <USER> <GROUP> <CLIENT IP> <SERVER IP>

EXAMPLE
P /irj/* * * * *
P /webdynpro/* * * * *
P /wsnavigator/* * * * *
P /RestictedWebService/* * * 172.20.161.61 *
P /sap/wdisp/admin/* * * * 127.0.0.1
D /* * * * *

Share

Using AWStats with the SAP Web Dispatcher

It is very easy to get statistical data from the WebDispather log files. For this example I use AWStats which gives you some basic information about the usage of your portal.

The following steps have to be performed to be able to use AWStats from the WebDispatcher administration console:

1. configure logging in webdispatcher, add the following line to your configuration:

icm/HTTP/logging_0 = PREFIX=/, LOGFILE=access_%y-%m%-%d.log, SWITCHTF=day, LOGFORMAT=%h %l %u %t “%r” %s %b “%{referer}i” “%{user-agent}i”

2. download and install perl

3. download and configure awstats:
LogFile=”C:/SAP/webdispatcher/access_%YYYY-%MM%DD.log”
LogFormat = “%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot”
DirIcons=”/sap/wdisp/admin/icon”

4. copy files to webdispatcher admin area (C:\SAP\webdispatcher\admin\awstats)
awstats.pl
awstats..conf
awstats_buildstaticpages.pl
lang folder
lib folder
plugins folder

5. copy icon folder to C:\SAP\webdispatcher\admin

6. create update script for static pages:
perl awstats.pl -config= -update
perl awstats_buildstaticpages.pl -config=

7. update nav.icp for navigation integration

<!–Added awstats functionality –>
<tr>
<td valign=”top”>
<table cellspacing=”0″ cellpadding=”0″ border=”0″>
<tr>
<td>
<img src=”images/1×1.gif” width=”0″ height=”1″ border=”0″>
</td>
<td nowrap>
<img src=”images/treeview/expander_open.gif” width=”16″ height=”11″ border=”0″>
</td>
<td nowrap width=”100%”>
<span nowrap class=”sapTreNoDsbl” style=”cursor:default;”>Statistics</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign=”top” class=”sapTreNl2″>
<table cellspacing=”0″ cellpadding=”0″ border=”0″>
<tr>
<td>
<img src=”images/1×1.gif” width=”16″ height=”1″ border=”0″>
</td>
<td nowrap>
<img src=”images/treeview/treeleaf.gif” width=”16″ height=”16″ border=”0″>
</td>
<td nowrap width=”100%”>
<span nowrap class=”sapTreNoDsbl” style=”cursor:default;”>
<a href=”awstats/awstats.<configname>.html” target=”main” class=”sapLnk”>AWStats</a>
</span>
</td>
</tr>
</table>
</td>
</tr>
<!–End of added awstats functionality –>

8. When everything is working correctly, the update script created in step 6 can be scheduled to run frequently and your AWStats data can be selected from the Webdispatcher administration console navigation tree.

Share