This section will outline how to secure the Portus Web Services to a specific IP address/hostname.
All examples have been enclosed in <IfModule> directives. This means that the security directives will be ignored automatically if the Apache web server does not have Portus enabled.
This example will show how to allow a request to the configuration service from only the local machine. This is local to where the Portus server is running, not where the Eclipse IDE is running (if different).
Enter the following directives
<IfModule mod_xmiddle.c> <Location /configurationService> Allow from 127.0.0.1 Deny from all </Location> </IfModule>
This would only allow access to the configuration web service from the local machine. All remote clients would be denied access.
Only allow a remote machine to configure the Portus server.
Enter the following directives
<IfModule mod_xmiddle.c> <Location /configurationService> Allow from adminHost Deny from all </Location> </IfModule>
mple would only allow the machines adminHost to configure the Portus server. All others machines would be rejected access.
Enter the following directives
<IfModule mod_xmiddle.c> <Location /configurationService> <Limit POST> Allow from adminHost Deny from all </Limit> </Location> </IfModule>
This would allow the machine adminHost to access the configuration, but would allow any client to access the configuration service WSDL.
Enter the following directives
<IfModule mod_xmiddle.c> <Location /adabas_Employees> Allow from 127.0.0.1 Deny from all </Location> </IfModule>
All remote access to the “adabas_Employees” resource would be denied. Note: This example will restrict access to the “adabas_Employees” service, not the XRD import or export. XRD import/export operations are provided by the configuration Web Service, to secure these operations see examples 1, 2 and 3.
Enter the following directives
<IfModule mod_xmiddle.c> <Location /resourceService> Allow from 127.0.0.1 Deny from all </Location> </IfModule>
All remote access to the “resourceService” resource would be denied.
![]() ![]() |
![]() |
![]() ![]() |