The expected basePath (in the configuration file) does not contain the port. The SwaggerBasePath is build by adding the basePath and the port number from which the server is started.
This is problematic if the server is accessed via ProxyPass (redirection of a port 80 resource to the rest server port).
Example:
rest server runs on www.myhost.domain using the port 8890
machine hosting the rest server allows only connections on port 80
ProxyPass rule for localhost:8890 to www.myhost.domain/myRestServiceOnPort80
basePath set to www.myhost.domain/myRestServiceOnPort80
swaggerBasePath = www.myhost.domain/myRestServiceOnPort80:8890 <<<=== NOT WORKING
The expected basePath (in the configuration file) does not contain the port. The SwaggerBasePath is build by adding the basePath and the port number from which the server is started. This is problematic if the server is accessed via ProxyPass (redirection of a port 80 resource to the rest server port).
Example: