Subdomain and virtual host configuration on Virgo [message #1313573] |
Thu, 24 April 2014 19:51  |
Eclipse User |
|
|
|
Hi,
I am trying to configure Virgo 3.6.2 so that I can have a subdomain (e.g. live.geppetto.org) point to a specific bundle.
I created an A Record for live.geppetto.org which points to the static IP of the server where Virgo is (I'm using Amazon EC2 so I'm putting the elastic IP there).
As I understand then I have to configure the local host on Virgo to recognise when the connection is coming from that subdomain to link the specific webapp I want to come up.
Inside tomcat-server.xml I've the following:
<Service name="Catalina">
<Connector port="8080" protocol="org.apache.coyote.http11.Http11Protocol"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="configuration/keystore"
keystorePass="changeit"/>
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina" defaultHost="live.geppetto.org">
<Realm className="org.apache.catalina.realm.JAASRealm" appName="virgo-kernel"
userClassNames="org.eclipse.virgo.nano.authentication.User"
roleClassNames="org.eclipse.virgo.nano.authentication.Role"/>
<Host name="live.geppetto.org" appBase="/org.geppetto.frontend"
unpackWARs="true" autoDeploy="true"
deployOnStartup="true" createDirs="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="serviceability/logs/access"
prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
<Valve className="org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve"/>
</Host>
</Engine>
</Service>
Note that I have org.geppetto.frontend deployed through a plan file which is inside the pickup folder. The bundle itself is inside /repository/usr.
The way I can access the bundle normally is by using http://ipaddress:8080/org.geppetto.frontend which works fine but when I go to my subdomain nothing comes up.
What am I doing wrong? Have I missed some steps? I haven't found a single example where this is explained, all the examples I found are for plain tomcat but it looks like something is different.
Thanks for the help,
Matteo
|
|
|
|
Powered by
FUDForum. Page generated in 0.03846 seconds