Question
· May 26, 2019

Unable to access the REST services through CSP Web Gateway

Hi Guys, 

I have a DB server (ser-app-db) where IRIS is installed as server.

I have a Web server (ser-app-w) where IRIS is installed as web server and configured as CSP gateway.

I followed the configuration guide and ser-app-w perfectly display the CSP and CLS pages.

 

But that's not working for my REST service, for exemple with the REST sample:

http://ser-app-db/REST/CRM/Get?ReqID=123(GET): work and show the request

http://ser-app-w/REST/CRM/Get?ReqID=123(GET): return a 404.

I am using Apache server in Linux box.

 

I am not sure what I am missing in the config.

 

httpd.conf file (pasted required part):

#### BEGIN-ApacheCSP-SECTION ####
LoadModule csp_module_sa "/opt/webgateway/bin/CSPa24.so"
CSPModulePath "/opt/webgateway/bin/"
CSPConfigPath "/opt/webgateway/bin/"
Alias /csp/ "/opt/webgateway/iris/csp/"
<Location "/csp/bin/Systems/">
        SetHandler csp-handler-sa
</Location>
<Location "/csp/bin/RunTime/">
        SetHandler csp-handler-sa
</Location>
<Directory "/opt/webgateway/iris/csp">
        CSPFileTypes *
        AllowOverride All
        Options MultiViews FollowSymLinks ExecCGI
        Require all granted
        <FilesMatch "\.(log|ini|pid|exe)$">
                Require all denied
        </FilesMatch>
</Directory>
<Directory "/opt/webgateway/bin/">
        AllowOverride None
        Options None
        Require all granted
        <FilesMatch "\.(log|ini|pid|exe)$">
                Require all denied
        </FilesMatch>
</Directory>
#### END-ApacheCSP-SECTION ####
#### BEGIN-ApacheCSP-SECTION-IRIS ####
Alias /iris/csp/ "/opt/webgateway/iris/csp/"
#### END-ApacheCSP-SECTION-IRIS ####

 

CSP.ini file :

 

[IRIS]
Ip_Address=localhost
TCP_Port=51773
Maximum_Session_Connections=6

[APP_PATH_INDEX]
/=Enabled
/csp=Disabled
/iris=Enabled

[APP_PATH:/]
Default_Server=DEV
Alternative_Servers=FailOver
GZIP_Compression=Enabled
GZIP_Minimum_File_Size=500
GZIP_Exclude_File_Types=jpeg gif ico png gz zip mp3 mp4 tiff
Response_Size_Notification=Chunked Transfer Encoding and Content Length
KeepAlive=No Action
Non_Parsed_Headers=Enabled
Alternative_Server_0=1~~~~~~DEV

[APP_PATH:/csp]
Default_Server=DEV
Alternative_Servers=FailOver
GZIP_Compression=Enabled
GZIP_Minimum_File_Size=500
GZIP_Exclude_File_Types=jpeg gif ico png gz zip mp3 mp4 tiff
Response_Size_Notification=Chunked Transfer Encoding and Content Length
KeepAlive=No Action
Non_Parsed_Headers=Enabled
Alternative_Server_0=1~~~~~~DEV

 

 

Thanks

Discussion (3)1
Log in or sign up to continue