oracle - Setting the default web application for virtual hosts on Weblogic 12c -


i have read in oracle documentation possible set default web application virtual host, can't find in web logic this.

the docs i'm referencing can found here under 'virtual hosting , default web application': https://docs.oracle.com/cd/e24329_01/web.1211/e24432/web_server.htm#cnfgd200

the scenario follows:

  • i have 2 web applications deployed on web logic server 1 under context '/authoring' , 1 under context '/publish'
  • i have 2 virtual hosts configured. 1 domain 'authoring.com' , 1 domain 'publish.com'
  • i have targeted '/authoring' app virtual host 'authoring.com' , '/publish' 'publish.com'.
  • i can access both apps through these domains if type context names e.g. authoring.com/authoring , publish.com/publish

what need do: - set default web app virtual host domain serves default application on domain root (as mentioned in linked docs) e.g. 'authoring.com/' serve '/authoring' url remain 'authoring.com/'.

thanks help.

steve

i've managed find reasonable workaround. despite docs there no clear way set app deployed non-root context (e.g. "/publish" or "/author"), on virtual host, 'default web app'.

however, can deploy each app explicitly root context of it's virtual host , make default app way.

the obvious downside can't test apps using ip address, need test apps via domain name of virtual host.

you can work around if don't own domains mapping ip addresses virtual host domains in 'hosts' file of machine. not great solution if need give access apps non-technical people e.g. testing , quality assurance, fine development.


Comments