#6 would like to be able to have a single webapp per hostdir

closed
nobody
None
5
2007-12-31
2007-12-31
No

Hi:

I am thrilled with your winstone servlet container, and want to use it on my virtual private server. There are 2 things stopping me. I would like to use the --hostsDir option, but I can't see a way to have one webapp per virtual host.

My other problem is a linux system administration problem I am facing. I would like to not run as root, but still use port 80.

I made a couple of examples and posted them at syndicateme.sourceforge.net.

thanks

Rich

rhildred@users.sourceforge.net

Discussion

  • Rick Knowles

    Rick Knowles - 2007-12-31
    • status: open --> closed
     
  • Rick Knowles

    Rick Knowles - 2007-12-31

    Logged In: YES
    user_id=716353
    Originator: NO

    You can already do this - just make a directory structure like this:

    hostsDir/www.domain1.com/ROOT/
    hostsDir/www.domain2.com/ROOT/

    to make two domains with a single webapp each. I can't think of a case where this wouldn't be acceptable. If you're really worried, make a directory set in the structure you want, then build a set of symlinked dirs in the wisntone structure back to your preferred structure.

    Port 80 without root is impossible. I recommend using Apache as a frontend, then using ajp13 to talk to winstone on port 8009. There's plenty of doc available on how to do this for tomcat and winstone (both follow the same patterns).

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks