problem with virtual hosting

2001-04-02 Thread Christopher Shade

I tried to map www.domain.com to www.domain.com/webapp by using
ServerName and ServerAlias in the config file, but it's not working.
Below is what I tried in my-tomcat-apache.conf.  What am I doing wrong?
Is there a better way to map a domain to a webapp?  Thanks!
...Christopher

### my-tomcat-apache.conf #

LoadModule jserv_module libexec/mod_jserv.so
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
 
ApJServDefaultPort 8010

# Name the Virtual Host IP
NameVirtualHost ...server IP is here...
 
# Define the Virtual Hosts

ServerName www.domain.com/fas
ServerAlias www.domain.com
ApJServMount /fas ajpv12://www.domain.com:8010/fas
DocumentRoot /usr/local/apache/prod/htdocs/fas


AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

...and the Alias entries for my webapps...





need www.domain.com mapped to www.domain.com/webapp transparently

2001-03-30 Thread Christopher Shade

> Hi,
> I need some advice...I need to configure my-tomcat-apache.conf to
> allow my Virtual Hosting to map to a webapp so that when the user
> enters www.domain.com, it directs their request as if they had
> specified the webapp (like www.domain.com/webapp).
> I have tried many different things, but here's what I have so far.
> This works fine for the virtual hosting, but again I need
> www.domain.com to map to www.domain.com/webapp without the user seeing
> the URL change.  Any advice is much appreciated!
> 
> LoadModule jserv_module libexec/mod_jserv.so
> ApJServManual on
> ApJServDefaultProtocol ajpv12
> ApJServSecretKey DISABLED
> ApJServMountCopy on
> ApJServLogLevel notice
> 
> ApJServDefaultPort 8010
> 
> # Name the Virtual Host IP
> NameVirtualHost ...server IP is here...
> 
> # Define the Virtual Hosts
> 
> ServerName www.domain.*
> ServerAlias domain.*
> ## This next line specifies for Tomcat to handle /fas requests, but 
> ## the problem is I don't want the user to have to enter /fas in the
> URL.
> ApJServMount /fas ajpv12://www.domain.com:8010/fas
> DocumentRoot /usr/local/apache/prod/htdocs/mydomain
> #ErrorLog /usr/local/apache/prod/logs/mydomain/error_log
> #CustomLog /usr/local/apache/prod/logs/mydomain/access_log common
> ## These are some things I have tried with no success:
> #
> #SetHandler jserv-servlet
> #
> #ApJServMount /* ajpv12://www.mydomain.com/fas
> ##Redirect www.mydomain.com http://www.mydomain.com/fas
> #RewriteEngine on
> #RewriteRule ^www.mydomain.com(.*) http://www.mydomain.com/fas$1
> [R]
> 
> 
> AddType text/jsp .jsp
> AddHandler jserv-servlet .jsp
> 
> ...and the Alias entries for my webapps...
> 
> Thanks for your help,  ...Christopher in Denver



RE: IP changes to domain name in URL

2001-03-29 Thread Christopher Shade

FYI, changing this to UseCanonicalName Off corrected the problem.  Thank
you so much, Hunter!
...Christopher in Denver

-Original Message-
From: Hunter Hillegas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 12:16 PM
To: Tomcat User List
Subject: Re: IP changes to domain name in URL


UseCanonicalName On

Turn it off.

> From: Nael Mohammad <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Tue, 27 Mar 2001 11:13:41 -0800
> To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
> Subject: RE: IP changes to domain name in URL
> 
> which directive is this?
> 
> -Original Message-
> From: Hunter Hillegas [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 27, 2001 10:47 AM
> To: Tomcat User List
> Subject: Re: IP changes to domain name in URL
> 
> 
> There is a directive in http.conf to rewrite Ips to URLs. Just turn it
off.
> 
> 
>> From: Nael Mohammad <[EMAIL PROTECTED]>
>> Reply-To: [EMAIL PROTECTED]
>> Date: Tue, 27 Mar 2001 10:45:13 -0800
>> To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
>> Subject: RE: IP changes to domain name in URL
>> 
>> Set the host name in the httpd.conf file for domain name resolution,
use
> the
>> ServerName directive to do this. Also, might want to check that your
host
>> file specifies the name of your system and is associated with the
system
> IP
>> address. 
>> 
>> --Nael
>> 
>> -Original Message-
>> From: Christopher Shade [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, March 26, 2001 2:09 PM
>> To: Tomcat-User Mailing List
>> Subject: IP changes to domain name in URL
>> 
>> 
>> Hi,
>> We're using Apache/Tomcat 3.2.1 and a login.jsp page...When we use
the
>> IP address in the URL, and we try to log in, the URL changes to our
IP
>> name and our "user not found" page appears.  It is a relative URL, so
it
>> appears that Apache or Tomcat is changing our IP address to our IP
name
>> in the URL, and we're losing the session that was created initially
with
>> the IP address.  Does anyone know what's happening or how to fix it
so
>> that we can use the IP address in the URL?
>> Thanks,
>> ...Christopher in Denver
>> 
> 




IP changes to domain name in URL

2001-03-26 Thread Christopher Shade

Hi,
We're using Apache/Tomcat 3.2.1 and a login.jsp page...When we use the
IP address in the URL, and we try to log in, the URL changes to our IP
name and our "user not found" page appears.  It is a relative URL, so it
appears that Apache or Tomcat is changing our IP address to our IP name
in the URL, and we're losing the session that was created initially with
the IP address.  Does anyone know what's happening or how to fix it so
that we can use the IP address in the URL?
Thanks,
...Christopher in Denver