How do you default an application to http://servername/

2005-09-09 Thread Aaron Pederson
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?

Re: How do you default an application to http://servername/

2005-09-09 Thread Leon Rosenberg
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

Re: How do you default an application to http://servername/

2005-09-09 Thread TroyGeek
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)

Re: how to access JSPs using servername/~username

2005-05-13 Thread Tim Funk
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

how to access JSPs using servername/~username

2005-05-12 Thread Akhthar Parvez. K
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

Re: how to access JSPs using servername/~username

2005-05-12 Thread Nikola Milutinovic
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

RE: how to access JSPs using servername/~username

2005-05-12 Thread Raghupathy,Gurumoorthy
== -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

Re: how to access JSPs using servername/~username

2005-05-12 Thread Tim Funk
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

Re: how to access JSPs using servername/~username

2005-05-12 Thread Nikola Milutinovic
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.

Re: how to access JSPs using servername/~username

2005-05-12 Thread Tim Funk
~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

Re: how to access JSPs using servername/~username

2005-05-12 Thread Nikola Milutinovic
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

how do I find out whether I am called by servername or by ip

2002-09-19 Thread Jan Kester
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

Re: how do I find out whether I am called by servername or by ip

2002-09-19 Thread Ben Walding
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

mod_webapp redirects to ServerName

2002-03-14 Thread Christopher Bare
/ 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

RE: mod_webapp: redirects to ServerName

2002-01-18 Thread Oli Gauti Gudmundsson
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

Re: mod_webapp: redirects to ServerName

2002-01-18 Thread Nikola Milutinovic
- 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

mod_webapp: redirects to ServerName

2002-01-17 Thread Oli Gauti Gudmundsson
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

Re: mod_webapp: redirects to ServerName

2002-01-17 Thread Nicholas Ide
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

RE: mod_webapp: redirects to ServerName

2002-01-17 Thread Anthony Muller
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

RE: mod_webapp: redirects to ServerName, mod_jk hangs

2002-01-17 Thread Oli Gauti Gudmundsson
. 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

RE: mod_webapp: redirects to ServerName, mod_jk hangs

2002-01-17 Thread Nicholas Ide
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

mod_webapp and ServerName redirect

2002-01-17 Thread Matthew Hunter
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

Re: mod_webapp: redirects to ServerName

2002-01-17 Thread Nikola Milutinovic
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

ServerName

2002-01-07 Thread Corey A. Johnson
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

Re: ServerName

2002-01-07 Thread Richard Sand
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

ServerName

2002-01-07 Thread Technical Support
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

Error accessing file http://servername/servlet/sample_servlet (- http:/servername...)

2001-12-18 Thread Khelender Sasan
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

servername and baseurl

2001-12-11 Thread tomcat
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:

Re: getting the ServerName

2001-08-10 Thread Kazi the P i R @ t {-
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

getting the ServerName

2001-08-09 Thread Kazi the P i R @ t {-
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

RE: getting the ServerName

2001-08-09 Thread Heath, Joseph
]] 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

RE: getting the ServerName

2001-08-09 Thread Mills, Theo
, 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

RE: getting the ServerName

2001-08-09 Thread Heath, Joseph
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

WHY http://servername:8080/myapp/index.htm?

2001-04-27 Thread Pedro Henrique Ponchio
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

Re: WHY http://servername:8080/myapp/index.htm?

2001-04-27 Thread Steve Ruby
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

RES: WHY http://servername:8080/myapp/index.htm?

2001-04-27 Thread Pedro Henrique Ponchio
/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

Re: RES: WHY http://servername:8080/myapp/index.htm?

2001-04-27 Thread Milt Epstein
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

RES: RES: WHY http://servername:8080/myapp/index.htm?

2001-04-27 Thread Pedro Henrique Ponchio
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

mod_jk.conf configuration: Access servlets from apache server with url servername/servlets/servlet-class

2001-04-22 Thread Lian, Xiaobu (Alice) (Xiaobu (Alice))
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