Bilal-S / iis2tomcat

AJP Connector between Internet Information Services (IIS) and Apache Tomcat
http://www.boncode.net/boncode-connector
49 stars 32 forks source link

How to get IIS site name, form connector to Tomcat servlet #52

Closed mayuranchalia closed 7 years ago

Bilal-S commented 7 years ago

This is not part of connector features. You will need to do it yourself.

You can get the unique INSTANCE_ID for your site by enabling header data support (see EnableHeaderDataSupport setting in manual). Then you will have a new HTTP variable: x-webserver-context which will have a prefix of W3SVC followed by INSTANCE_ID. For example W3SVC23, means instance_id = 23.

Otherwise, you will need to figure out how to make a call to IIS and retrieve the sitename property: https://msdn.microsoft.com/en-us/library/system.web.hosting.hostingenvironment.sitename(v=vs.110).aspx

It will not be possible to add this to the connector at this time.

mayuranchalia commented 7 years ago

Thanks a lot for quick response.

Regards Mayur Jain

On Jun 2, 2017 9:38 PM, "Bilal Soylu" notifications@github.com wrote:

This is not part of connector features. You will need to do it yourself.

You can get the unique INSTANCE_ID for your site by enabling header data support (see EnableHeaderDataSupport setting in manual). Then you will have a new HTTP variable: x-webserver-context which will have a prefix of W3SVC followed by INSTANCE_ID. For example W3SVC23, means instance_id = 23.

Otherwise, you will need to figure out how to make a call to IIS and retrieve the sitename property: https://msdn.microsoft.com/en-us/library/system.web.hosting. hostingenvironment.sitename(v=vs.110).aspx

It will not be possible to add this to the connector at this time.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Bilal-S/iis2tomcat/issues/52#issuecomment-305833789, or mute the thread https://github.com/notifications/unsubscribe-auth/AJpSWHpNx4p1rM9LuwKon5un8iAH2K4xks5sADN3gaJpZM4NuNbz .