allow only ssl connections in the request

Hi There,

How could i check if the request is coming thru ssl channel and reject if it was non-ssl.

0 5 162
5 REPLIES 5

@Popleys

You can configure a virtual host in your apigee edge which can listen on http or https. You can then restrict the calls to be received from the secured virtualhost or both in the HTTPProxyConnection of the proxy endpoint.

<HTTPProxyConnection>
<BasePath>abc</BasePath>  
<Properties/>  
<VirtualHost>default</VirtualHost>
<VirtualHost>secure</VirtualHost>
</HTTPProxyConnection>

Thanks for it.Am getting the result as per the suggestion,but it throws the below custom error.I think i need to add a conditional flow for it and create a custom fault which i could but ,am wondering what could be the condition i can have for this,when i have flow?

{ "fault": { "faultstring": "Unable to identify proxy for host: default and url: /test/account", "detail": { "errorcode": "messaging.adaptors.http.flow.ApplicationNotFound" } } }

Check your virtual host name in the Edge UI->Environment Configuration->Virtual Hosts. My example shows a virtual host name "default" for http traffic and "secure" for https traffic. You may have different names for the virtual hosts in your Edge configuration.

Even I've same thing.