Re: Configure Apache HTTPD not to see the webapp name in the URL

From: Ben Jessel (ben.jessel_at_morpheme.co.uk)
Date: 06/28/04

  • Next message: Davide Bianchi: "Re: Configure Apache HTTPD not to see the webapp name in the URL"
    Date: 28 Jun 2004 06:00:06 -0700
    
    

    Thanks for everyone's input.

    However, I'm a little concerned that there's not a quick and easy
    apache way of doing this; what do commercial users do? I'm sure that
    there must be an apache way of doing this! Could it be done with
    virtual hosting or aliasing?

    Its a pity that you can't just define a virtual directory to
    c:/tomcat4.1/webapps/mysite, as then this circumvents JK2 and doesn't
    use apache.

    So is this a limitation of JK2 that you can't ever intercept something
    at the root path of your webserver and then forward it to a different
    context?

    I tried:

    [urn:/]
    context=/mysite/

    But unfortunately it never got picked up.

    Btw as anyone successfully managed to get JNI channels working with
    apache/tomcat? THe closest I got was an error message saying that it
    needed some jni libraries in the java-library-path. I added a dll, but
    still no joy......

    Original Mesage:

    I've successfully set up JK2, Apache HTTPD and Tomcat.
    My webapp it called mysite - I've set my workers.properties as
    [uri:/mysite/*].
    My site is called, say http://welcometomysite.com.

    In order to actually make mysite/index.jsp to appear when you go to
    http://welcometomysite.com, I used mod_rewrite and added a directive:

    <Directory />
        Options FollowSymLinks
        AllowOverride AuthConfig
        RewriteEngine on
        RewriteRule / /mysite/ [L]
    </Directory>

    However, when I go to http://welcometomysite.com, the url is
    http://welcometomysite.com/mysite.

    Is there any way that I can disguise the URL so it never shows the
    web-app name?
    One considerations is that all my entries in my struts.config and jsp
    pages currently say /mysite/dosomething.do.

    Essentially, I'm looking for a solution where I never see my web-app
    name in my URL. Can anyone advise? I am an HTTPD newbie.

    Thanks

    Ben


  • Next message: Davide Bianchi: "Re: Configure Apache HTTPD not to see the webapp name in the URL"

    Relevant Pages