[ https://issues.apache.org/jira/browse/AXIS2-4519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763377#action_12763377 ]
Amila Chinthaka Suriarachchi commented on AXIS2-4519: ----------------------------------------------------- hi Andreas, Could you please explain bit about what you have said. This is what I want to say regarding host name. As given in this jira lets say some one have a front end Apache server and back end tomcat server. External users can only access the Apache server. In this case if a user request for ?wsdl, what is the soap address displayed? if it displays the public Ip of the Apache server or is there a way to configure it, it is fine. What I have suggest is to let user to define what is shown here. So if we can introduce a parameter to AxisServletListener then it can read this value and use (if it is set) when generating the epr. <transportReceiver name="http" class="org.apache.axis2.transport.http.AxisServletListener"> <parameter name="port">8080</parameter> <parameter name="hostname">myserver.com</parameter> </transportReceiver> > Supporting of different configurations for different requests is broken for > AxisServlet. > ---------------------------------------------------------------------------------------- > > Key: AXIS2-4519 > URL: https://issues.apache.org/jira/browse/AXIS2-4519 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: kernel, transports > Affects Versions: nightly > Environment: FreeBSD 6.2, Apache 2.22, Diablo JDK 1.5, Tomcat 6.0.14 > Reporter: Maslakov Denis > > AxisServlet does not support different configurations for different requests > for one instance of Axis2 web-services under Tomcat. > The configuration of web-services is: > 1. The frontend is Apache web-server on 80 port. > The Apache contains virtual domain (webservices.domain.ru) for redirecting > request to Tomcat (through mod_jk). > The request for web-service is > http://webservices.domain.ru/context-path1/services/WSService/ > 2. The backend of web-services is Axis2 under Tomcat on 8180 port. > The request for web-service is http://<ip>:8180/axis2-test/services/WSService/ > Here axis2-test is name of webapp Axis2 and so context path. > The external users inquire web-service from Apache. > The internal users inquire same web-services directly from Tomcat. > Nevertheless, class AxisServletListener will catch port from the first > request of user. If it will be request from external user, then port will be > 80 for all users. If it will be request from internal user, then port will be > 8180 for all users. > The context path from request also will be different. > It happens as AxisServlet instance contains only one listener and one path of > context. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.