Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Subdomain and virtual host configuration on Virgo
Subdomain and virtual host configuration on Virgo [message #1313573] Thu, 24 April 2014 23:51 Go to next message
Matteo Cantarelli is currently offline Matteo CantarelliFriend
Messages: 30
Registered: June 2012
Member
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
Re: Subdomain and virtual host configuration on Virgo [message #1323323 is a reply to message #1313573] Wed, 30 April 2014 07:45 Go to previous message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Hi,

the setup in tomcat-server.xml is correct.
check the record in amazon.

Regards
Violeta
Previous Topic:Virgo project about to be deleted!
Next Topic:Virgo 3.6.1 + Spring 3.2.2 + org.springframework.osgi.core
Goto Forum:
  


Current Time: Sun Apr 28 11:10:49 GMT 2024

Powered by FUDForum. Page generated in 0.07010 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top