Hello!

I want to create some virtuals on one site. I tried search solution on
website and I found one:

http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#User%20Web%20Applications

but this example isn't good for me. I want manually create accounts
(create user in system and next settings).


Every user has own space on hdd, like that:

user1's dir: "/home/user1/webapps"
http://www.site.com:8080/user1


user2's dir: "/home/user2/webapps"
http://www.site.com:8080/user2


I did symlink into $CATALINA_HOME/webapps/user1 via:

$ ln -s /home/user1/webapps /opt/tomcat-5.5.26/webapps/user1



Below is part of configuration server.xml


<Engine name="Catalina" defaultHost="localhost">

  <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

  <Host name="localhost" appBase="webapps/localhost" unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
  </Host>

  <Host name="user1.localhost" debug="0" appBase="webapps/user1"
unpackWARs="true" autoDeploy="true" xmlValidation="false"
xmlNamespaceAware="false"> <Logger
className="org.apache.catalina.logger.FileLogger" directory="logs"
prefix="user1\_log." suffix=".txt" timestamp="true"/>
<Alias>http://www.site.com:8080/user1</Alias> </Host>

  <Host name="user2.localhost" debug="0" appBase="webapps/user2"
unpackWARs="true" autoDeploy="true" xmlValidation="false"
xmlNamespaceAware="false"> <Logger
className="org.apache.catalina.logger.FileLogger" directory="logs"
prefix="user2\_log." suffix=".txt" timestamp="true"/>
<Alias>http://www.site.com:8080/user2</Alias> </Host>


But it doesn't work. Is it possible to create this idea?


Best regards, Paul

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to