apache - Glassfish - Domain wise redirection to application -


i running glassfish server on linux 6 oracle apex applications running on port 8080 , 8181(for https).

now, suppose domain mydomain.com,

and when access

a.mydomain.com -> should redirected application 1 (i.e a.mydomain.com:8080/apex/f?p=1)

b.mydomain.com -> should redirected application 2 (i.e b.mydomain.com:8080/apex/f?p=2)

and on...

if hard figure out glassfish, can move apache tomcat if required.

any advice/idea appreciable.

i don't know glassfish, might try proxypass inside virtual host config

proxypass / http://a.mydomain.com:8080/apex/f?p=1 

similar b.mydomain.com domain.


if want redirect, i.e. browser's url changes, use redirect instead

redirect / http://a.mydomain.com:8080/apex/f?p=1 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

android - CoordinatorLayout, FAB and container layout conflict -