How do you default an application to come up when you hit the server on
the port tomcat is running on? For my case Im running it as
http://localhost:8080/. Is it a server.xml setting?
heh... there is a VERY simple but surely not spec-conform way:
call your webapp ROOT
and add a mapping for /
regards
leon
On Fri, 2005-09-09 at 08:23 -0700, Aaron Pederson wrote:
How do you default an application to come up when you hit the server on
the port tomcat is running on? For my case
Or use Tomcat Virtual Hosting and define a new host. Then you can serve all
your apps on:
http://myapp1/
http://myapp2/
etc...
You'd need to make a new DNS entry on your DNS server or if it's just local
then add some entries to:
C:\Windows\System32\drivers\etc\hosts (Windows XP)
No, see http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html
There is a feature that allows you to set context configuration inside a WAR
file. [by creating a META-INF/context.xml file. ] Whether this would work
with userdirs too , I don't know (and have not tested)
-Tim
Nikola
Hi,
I used to access the html webpages using
servername.(http://servername/~username)
But I am not able to access JSPs in the above fashion. What could be added into
server.xml
so that I can access jsps using servername.(http://servername/~username)
--
With Regards,
Akhthar
Akhthar Parvez. K wrote:
Hi,
I used to access the html webpages using servername.(http://servername/~username)
But I am not able to access JSPs in the above fashion. What could be added into server.xml
so that I can access jsps using servername.(http://servername/~username)
There is no ellegant
==
-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: 12 May 2005 12:47
To: Tomcat Users List
Subject: Re: how to access JSPs using servername/~username
Akhthar Parvez. K wrote
There is the concept of user dirs ...
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html
See the section User Web Applications
-Tim
Nikola Milutinovic wrote:
Akhthar Parvez. K wrote:
Hi,
I used to access the html webpages using
servername.(http://servername/~username)
But I am
Tim Funk wrote:
There is the concept of user dirs ...
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html
See the section User Web Applications
I stand corrected.
I still prefer explicit context mappings. How would you deploy JNDI
resources in userdir case?
Nix.
~user/public_html/META-INF/context.xml might do the trick.
-Tim
Nikola Milutinovic wrote:
Tim Funk wrote:
There is the concept of user dirs ...
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html
See the section User Web Applications
I stand corrected.
I still prefer explicit context
Tim Funk wrote:
~user/public_html/META-INF/context.xml might do the trick.
So, the magical name of the UserDir context is context?
Nix.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
cookies, thus loosing sessions. A same problem happens with first
calling my server by IP, and then call my server by servername. The cookies
are different so I loose my session. So at the moment of generating my
return-redirect-URL I need to know exactly where I am. How do I know whether
my URL has
a second call
to port 80 explicitly and a first to port 80 implied already generates
different cookies, thus loosing sessions. A same problem happens with first
calling my server by IP, and then call my server by servername. The cookies
are different so I loose my session. So at the moment
/
Unfortunately, any of these will redirect me to:
http://[ServerName]/examples/jsp/index.html
where ServerName is as configured in httpd.conf.
No matter how I set ServerName, it is a problem for
either my own machines inside my router( no internal
DNS ), or machines outside.
Is there any kind
If I point my browser to http://www.mydomain.com
http://www.mydomain.com , Apache redirects me to
http://123.45.67.89/index.jsp http://123.45.67.89/index.jsp , where
123.45.67.89 is the IP address of the server running the application,
and is set as the ServerName in httpd.conf
- Original Message -
From: "Oli Gauti Gudmundsson" [EMAIL PROTECTED]
To: "'Tomcat Users List'" [EMAIL PROTECTED]
Sent: Friday, January 18, 2002 11:15 AM
Subject: RE: mod_webapp: redirects to ServerName
If I point my browser to http://www.m
is the IP address of
the server running the application, and is set as the ServerName in
httpd.conf.
If I change the ServerName in httpd.conf to www.mydomain.com
http://www.mydomain.com , then the opposite happens (that is, if I point
the browser to 123.45.67.89 I get redirected
PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
Delivered-To: mailing list [EMAIL PROTECTED]
From: Oli Gauti Gudmundsson [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: mod_webapp: redirects to ServerName
Date: Thu, 17 Jan 2002
PM
À : [EMAIL PROTECTED]
Objet : Re: mod_webapp: redirects to ServerName
Oli,
My problem (encodeURL bug) is related. If *all* you care about is
getting the hostname corrected and if you're not worried about
changing ports, then I believe switching from mod_webapp to mod_jk
will solve your
. janúar 2002 14:33
To: [EMAIL PROTECTED]
Subject: Re: mod_webapp: redirects to ServerName
Oli,
My problem (encodeURL bug) is related. If *all* you care about is getting
the hostname corrected and if you're not worried about changing ports, then
I believe switching from mod_webapp to mod_jk
Oli,
Snippets of my mod_jk configuration are:
From server.xml:
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=13084 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
Be sure the port=TBD value above matches the vlaue in your
I'm using Apache 1.3.19 and Tomcat 4.0.1 with mod_webapp.
mod_webapp is redirecting to the ServerName in the apache
configuration unless you access a specific file -- that is,
I can access http://test.example.com/ and get redirected to
http://www.example.com/, but if I access
http
If I point my browser to http://www.mydomain.com http://www.mydomain.com ,
Apache redirects me to http://123.45.67.89/index.jsp
http://123.45.67.89/index.jsp , where 123.45.67.89 is the IP address of
the server running the application, and is set as the ServerName in
httpd.conf
Hello all,
Does anyone know how to control what is returned by the method:
request.getServerName();
The site is hosted with a ISP.. with other sites on the same server...
And the above method returns what is set via the Apache directive:
ServerName
And i need to be able to detect what URL
use request.getRequestURL()
-Richard
- Original Message -
From: Corey A. Johnson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 07, 2002 3:30 PM
Subject: ServerName
Hello all,
Does anyone know how to control what is returned by the method:
request.getServerName
Hello all,
Does anyone know how to control what is returned by the method:
request.getServerName();
The site is hosted with a ISP.. with other sites on the same server...
And the above method returns what is set via the Apache directive:
ServerName
And i need to be able to detect what URL
Hi,
I'm getting the following error, when I try to download a file, which is served by a
servlet:
001-12-18 20:03:51 - Ctx( ): 408 R( +
http:/servername/sample/path_used_by_servlet/file.txt + null) Response from
server.file.txt
The request entered from browser is :
http
hi,
my apache redirects to a tomcat with mod_rewrite.
I request http://apachewebserver.com/tomcat05/xy;
apache alters the url and fetches http://192.168.0.5/xy; from the tomcat running on
192.168.0.5 (intranet).
is it possible to make the baseurl returned by tomcat:
be back with feedback as soon as i do...
by the the packages are to be used with XSPs, not servlets...
:)
Most Grateful -
kazi
- Original Message -
From: Heath, Joseph [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 9:51 PM
Subject: RE: getting the ServerName
Its
how can one of my packages (not a servlet) access the server's name?? I
attempted to use the HttpServletRequest object in isolation and using the
function getServletName() to achieve my goals... but it failed. It was just
a shot in the dark...
Now i am turning to you all... shed some light on my
]]
Sent: 09 August 2001 11:11
To: [EMAIL PROTECTED]
Subject: getting the ServerName
how can one of my packages (not a servlet) access the
server's name?? I
attempted to use the HttpServletRequest object in isolation
and using the
function getServletName() to achieve my goals
, August 09, 2001 5:22 AM
To: '[EMAIL PROTECTED]'
Subject: RE: getting the ServerName
Your classes will not know where they are being run..
You have to pass some kind of context in to them..
I normally use a ref to the servlet through the constructor
eg..
public class MyExample {
private
the ServerName yes do that...;-)
-Original Message-
From: Mills, Theo [mailto:[EMAIL PROTECTED]]
Sent: 09 August 2001 14:37
To: '[EMAIL PROTECTED]'
Subject: RE: getting the ServerName
Actually there's a more direct method in
javax.servlet.ServletContext.getServerInfo().
Check it out
Hello,
I need to know how to set up my Tomcat or Apache to understand that
myapp is a jsp application without the need to put the port number in
the adress bar, because when I try to access it without the 8080, it
fails ... (looks like the apache is trying to find the directory myapp
inside the
Pedro Henrique Ponchio wrote:
Hello,
I need to know how to set up my Tomcat or Apache to understand that
myapp is a jsp application without the need to put the port number in
the adress bar, because when I try to access it without the 8080, it
fails ... (looks like the apache is trying
/servlet/* ajp13
JkMount /otherworker/*.jsp remoteworker
include /packages/tomcat/conf/mod_jk.conf-auto
-Mensagem original-
De: Steve Ruby [mailto:[EMAIL PROTECTED]]
Enviada em: Friday, April 27, 2001 12:16 PM
Para: [EMAIL PROTECTED]
Assunto: Re: WHY http://servername:8080/myapp
to Tomcat.
-Mensagem original-
De: Steve Ruby [mailto:[EMAIL PROTECTED]]
Enviada em: Friday, April 27, 2001 12:16 PM
Para: [EMAIL PROTECTED]
Assunto: Re: WHY http://servername:8080/myapp/index.htm?
Pedro Henrique Ponchio wrote:
Hello,
I need to know how to set up my Tomcat
THKS a lot! It works now! There´s some problems with my mod-jk.conf ...
-Mensagem original-
De: Milt Epstein [mailto:[EMAIL PROTECTED]]
Enviada em: Friday, April 27, 2001 1:55 PM
Para: [EMAIL PROTECTED]
Assunto: Re: RES: WHY http://servername:8080/myapp/index.htm?
On Fri, 27 Apr 2001
r/servlets/ directory. Our
people
want to keep the same url as servername/servlets/servlet-class.
I configured tomcat to access it by using url:
server:8090/servlets/classname,
the same way they are running on other web server.
What I did was
1) add context in server.xml with the path =&q
39 matches
Mail list logo