java - Glassfish Server Webservice behind Apache HTTP Server -


hi started create our applications j2ee. created webservice , deployed glassfish server. have written apache proxy rule access via https://our.server.com/webservice-war (only https port open server):

proxyrequests off proxypass /webservice-war http://our.server.com:8080/webservice-war proxypassreverse /webservice-war http://our.server.com:8080/webservice-war 

now works fine, when go to serviceendpoint page (which automatically generated) there link wsdl page: http://our.server.com:8080/webservice-war/hostaliassearchimplservice?wsdl

which obously wrong (glassfish listens port 8080). , https changed http

anyone idea how can fix it, automatically generated link is:

https://our.server.com/webservice-war/hostaliassearchimplservice?wsdl

br, rene

i discovered consider simple , elegant way deal issue: use mod_substitute. since of problem using apache, , it's built in , simple, liked approach best.

i put block similar below in 1 of apache conf files , found joy:

<location />    addoutputfilterbytype substitute text/xml    substitute "s|http://internal:8080/foo|https://external/foo|ni" </location> 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -