Tomcat - JAAS - getting users ip address

2005-09-13 Thread Franck Borel
Hi all, to authentify a client I am using tomcat 5, j_security and JAAS. Is it possible to get the IP address of an acutally client within the JAAS module (like getRemoteAddress in jsp)? If not: Is it possible to extend j_security, in sort that my_j_security set a *callback* with the client

Re: JAAS - public Credentials and ip address

2005-09-02 Thread Franck Borel
Hi Wendy, Thanks for your answer. I am trying to implement a JAAS-module that can authenticate a user with username/password and his/her ip-address. To get the username and password is straightforward. My problem is that I don't know how to get the ip-address of the user. (I am newbee

JAAS - public Credentials and ip address

2005-09-01 Thread Franck Borel
Hi, I am trying to implement a JAAS-module that can authenticate a user with username/password and his/her ip-address. To get the username and password is straightforward. My problem is that I don't know how to get the ip-address of the user. (I am newbee concerning JAAS, so please don't

Re: JAAS - public Credentials and ip address

2005-09-01 Thread Wendy Smoak
From: Franck Borel [EMAIL PROTECTED] I am trying to implement a JAAS-module that can authenticate a user with username/password and his/her ip-address. To get the username and password is straightforward. My problem is that I don't know how to get the ip-address of the user. (I am newbee

How bind Tomcat to an IP address?

2005-08-04 Thread Andrea Senatore
Hi all, I have installed jakarta-tomcat-4.1.18-LE-jdk14 on my windows 2000. I tried it locally typing in my browser http://localhost:8080 and all works fine. As I need to use Tomcat on machine different from mine I tried to change the address which Tomcat is listening to. I read on HOW-TO that you

How bind Tomcat to an IP address?

2005-08-04 Thread Andrea Senatore
Hi all, I have installed jakarta-tomcat-4.1.18-LE-jdk14 on my windows 2000. I tried it locally typing in my browser http://localhost:8080 and all works fine. As I need to use Tomcat on machine different from mine I tried to change the address which Tomcat is listening to. I read on HOW-TO that you

Re: How bind Tomcat to an IP address?

2005-08-04 Thread Justin Jaynes
domains based on IP address. Usually a machine only has one IP address, but even so, if you do not set up the address parameter in your server.xml file, tomcat should listen to all the network devices on the server and respond to your requests to each of the IP's. If this does not answer your

Re: How bind Tomcat to an IP address?

2005-08-04 Thread Andrea Senatore
Hi Justin, thanks for fast reply! I'm sorry but I'm rookie on Tomcat. What I've written is what happens, i.e. when I try to connect to Tomcat server typing localhost address (http://localhost:port) all works. If I type in the browser my IP address (http://myIP:port) the server doesn't accept any

default IP address connector binding?

2005-06-08 Thread Paul Singleton
My Linux server's eth0 supports ten IP addresses. What happens (in 5.5.9) if my HTTP Connector doesn't specify an address = 216.119.217.240 attribute? Does it use the first one? all of them? (it's working but I need to know exactly what it's doing) Paul Singleton -- No virus found in

Re: default IP address connector binding?

2005-06-08 Thread Tim Funk
All of them -Tim Paul Singleton wrote: My Linux server's eth0 supports ten IP addresses. What happens (in 5.5.9) if my HTTP Connector doesn't specify an address = 216.119.217.240 attribute? Does it use the first one? all of them? (it's working but I need to know exactly what it's

Re: default IP address connector binding?

2005-06-08 Thread Markus Schönhaber
Am Mittwoch, 8. Juni 2005 16:04 schrieb Paul Singleton: My Linux server's eth0 supports ten IP addresses. What happens (in 5.5.9) if my HTTP Connector doesn't specify an address = 216.119.217.240 attribute? Does it use the first one? all of them? (it's working but I need to know

binding 5.5.9 HTTP connector to specific IP address

2005-06-05 Thread Paul Singleton
I run 5.5.9 standalone under Fedora Core 3, and have ten consecutive IP addresses on one NIC. When I configure a standard HTTP connector without any particular IP address, it seems to happily accept requests on all these addresses (is this by design?) When I configure it with the extra

RE: binding 5.5.9 HTTP connector to specific IP address

2005-06-05 Thread Caldarale, Charles R
From: Paul Singleton [mailto:[EMAIL PROTECTED] Subject: binding 5.5.9 HTTP connector to specific IP address When I configure it with the extra attribute address=195.108.201.212 (not the real address) then Tomcat seems to start up happily snip but requests to that IP address fail

How can I catch the ip-address chenged event?

2005-05-29 Thread maojm
Hi, I create a thread using an init servlet, which is loaded on start-up. This thread listens on port 3030 and does well. But after changing ip-address,this thread seems dead and no responses to any incoming connections. How can i catch the ip-address chenged event so that i can re

reloading a host from the IP address manager

2005-04-21 Thread Charles Harvey III
Hello there. I have Tomcat setup with a few different Hosts. Each webapp needs a new URL so it gets its own Host entry. Not weird. But what gets difficult is that I cannot reload each of these Hosts. http://12.34.56.78/manager/reload?path=/myapp That works if I have: tomcat-home/webapps/myapp/

Re: logging remote IP address

2005-01-31 Thread David Smith
, but any input is welcome. Thanks, Mark. --- Cervenka, Tom [EMAIL PROTECTED] wrote: Mark, Why do want to know the internal NAT ip address of a request? How is this helpful? Also, what if the requests come from clients with accounts on the same multiuser system? Are you trying to figure out how

Re: logging remote IP address

2005-01-31 Thread Dakota Jack
different machines anymore than the same ip address indicates the same person. I think that the original question, however, would have been happy with identifying two different machines. And, of course, one can do thatl So we do not have to make your assumption. Jack -- You can lead a horse

Re: logging remote IP address

2005-01-29 Thread Markus Schönhaber
Mark wrote: I'm just tring to see if http request that came from one IP address has more then 1 client behind it. I've seen on some webpages that My IP is displayed as both external and internal - so it means it's doable - but the question is how to get this info in Tomcat. If your local an your

Re: logging remote IP address

2005-01-29 Thread Dakota Jack
be uniquely identified or that person or machine cannot get a response. This could take quite a while to discuss, actually. The IP address that is exposed to the public, which is the one I use, has to be different or there would be no way to get back to the client machine. So, we may be talking

RE: logging remote IP address

2005-01-29 Thread Caldarale, Charles R
From: Dakota Jack [mailto:[EMAIL PROTECTED] Subject: Re: logging remote IP address The IP address that is exposed to the public, which is the one I use, has to be different or there would be no way to get back to the client machine. Not true - the combination of IP address and PORT must

[OT]Re: logging remote IP address

2005-01-29 Thread Parsons Technical Services
From: Dakota Jack [mailto:[EMAIL PROTECTED] Subject: Re: logging remote IP address The IP address that is exposed to the public, which is the one I use, has to be different or there would be no way to get back to the client machine. Charles Wrote: Not true - the combination of IP address

Re: [OT]Re: logging remote IP address

2005-01-29 Thread Dakota Jack
snip On Sat, 29 Jan 2005 22:58:01 -0500, Parsons Technical Services Not true - the combination of IP address and PORT must be unique, not just the IP address. This is the essence of how NAT and proxies work. /snip Yes, once again, I agree with this. Jack -- You can lead a horse to water

Re: logging remote IP address

2005-01-28 Thread Mark
I'm just tring to see if http request that came from one IP address has more then 1 client behind it. I've seen on some webpages that My IP is displayed as both external and internal - so it means it's doable - but the question is how to get this info in Tomcat. --- Parsons Technical Services

Re: logging remote IP address

2005-01-28 Thread Dakota Jack
I don't know what you mean by I've seen on some webpages [sic] that My [sic] IP is displayed as both exernal and internal. The IP address is for the internet and there is only one. You may have internal routing. That is different. I don't know what you mean about webpages displaying your

RE: logging remote IP address

2005-01-28 Thread Richard Mixon (qwest)
Mark wrote: I'm just tring to see if http request that came from one IP address has more then 1 client behind it. I've seen on some webpages that My IP is displayed as both external and internal - so it means it's doable - but the question is how to get this info in Tomcat. A major purpose

RE: logging remote IP address

2005-01-28 Thread Cervenka, Tom
Mark, Why do want to know the internal NAT ip address of a request? How is this helpful? Also, what if the requests come from clients with accounts on the same multiuser system? Are you trying to figure out how to tell them apart? There is no NAT address in this case. Maybe what you are trying

Re: logging remote IP address

2005-01-28 Thread Dakota Jack
the firewall is to be kept secret. I may be wrong, but I believe any web page you have been to that also showed in the browser/client's internal private IP address must have had a plugin - either an ActiveX or other type of plugin was probably involved. HTH - Richard /snip Jack

RE: logging remote IP address

2005-01-28 Thread Mark
ip address of a request? How is this helpful? Also, what if the requests come from clients with accounts on the same multiuser system? Are you trying to figure out how to tell them apart? There is no NAT address in this case. Maybe what you are trying to do is best solved by using

Re: logging remote IP address

2005-01-28 Thread Dakota Jack
If it is the same IP address, it probably is the same person. The alternatives are highly unlikely, if possible. Jack snip I have two entries in access log file within 30 second from the same IP, but different logon id - my question is how to track it down that it's a different person? /snip

Re: logging remote IP address

2005-01-28 Thread Parsons Technical Services
@jakarta.apache.org Sent: Friday, January 28, 2005 4:44 PM Subject: Re: logging remote IP address If it is the same IP address, it probably is the same person. The alternatives are highly unlikely, if possible. Jack snip I have two entries in access log file within 30 second from the same IP

logging remote IP address

2005-01-27 Thread Mark
Hi, Can anybody help how to log remote IP internal address using catalina logger (org.apache.catalina.*) classes and Http request class? request.getRemoteAddr() returns only one IP, but I'd like to see if the request came from subnewtwork or not: I'm looking for both values external IP and

Re: logging remote IP address

2005-01-27 Thread Parsons Technical Services
@jakarta.apache.org Sent: Thursday, January 27, 2005 3:28 PM Subject: logging remote IP address Hi, Can anybody help how to log remote IP internal address using catalina logger (org.apache.catalina.*) classes and Http request class? request.getRemoteAddr() returns only one IP, but I'd like to see if the request

Bind Tomcat to one IP address on multiple IP machine

2004-11-02 Thread footh
have to get that complicated. Other than that, I've pretty much replaced any instance of the word localhost with an IP address but still I can access Tomcat on all the IP addresses for the machine. Am I missing something simple? Thanks, -JF

RE: Bind Tomcat to one IP address on multiple IP machine

2004-11-02 Thread Shapira, Yoav
shouldn't have to get that complicated. It's this kind of post that really discourages me ;( As the connector doc (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html) clearly says, right at the top of the attributes section: Attribute Description address For servers with more than one IP

RE: Bind Tomcat to one IP address on multiple IP machine

2004-11-02 Thread footh
section: Attribute Description address For servers with more than one IP address, this attribute specifies which address will be used for listening on the specified port. By default, this port will be used on all IP addresses associated with the server. Yoav This e-mail, including any

RE: Bind Tomcat to one IP address on multiple IP machine

2004-11-02 Thread Shapira, Yoav
: Bind Tomcat to one IP address on multiple IP machine Sorry, it was really late at night when I was looking into this and after spending the evening going through docs for Apache, jk2, MySQL, etc. my eyes were very tired. There are a ton of questions that I answered for myself by going through

RE: how to bind the shutdown port to one single IP address

2004-10-13 Thread Sascha Vital
a configurable shutdown address. Yoav Shapira http://www.yoavshapira.com -Original Message- Sent: Tuesday, October 12, 2004 11:07 AM To: [EMAIL PROTECTED] Subject: how to bind the shutdown port to one single IP address Hi, is it possible to bind the shutdown port to one single IP

how to bind the shutdown port to one single IP address

2004-10-12 Thread Sascha Vital
Hi, is it possible to bind the shutdown port to one single IP address? I do have a clustered environment and running different virtual hosts on the same physical host. Tomcat now binds the shutdown port always to localhost.8005 and with this localhost, all virtual hosts are included. But I just

RE: how to bind the shutdown port to one single IP address

2004-10-12 Thread Shapira, Yoav
will have a configurable shutdown address. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Sascha Vital [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 11:07 AM To: [EMAIL PROTECTED] Subject: how to bind the shutdown port to one single IP address Hi

User IP address

2004-07-16 Thread Jarl Skogsholm
How do I get the user IP address? I only get the IP of the server. Thanks -- They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin (1755

Re: User IP address

2004-07-16 Thread Tim Funk
HttpServletRequest.getRemoteAddr() -Tim Jarl Skogsholm wrote: How do I get the user IP address? I only get the IP of the server. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: User IP address

2004-07-16 Thread Emerson Cargnin
if the users are behind a proxy use the following approach: String endIp = req.getRemoteAddr(); String endIpfoward = req.getHeader(X-Forwarded-For); //the user is behind a proxy if (endIpfoward != null) { endIp = endIpfoward; } so you will get the real ip address anyway, even if it's

getRemoteHost return IP address

2004-07-09 Thread Michael Tang
to returning IP address instead of the hostname. Does anyone see similar problem before or have any suggestion? thanks, -Michael _ MSN Life Events gives you the tips and tools to handle the turning points in your life. http

Re: getRemoteHost return IP address

2004-07-09 Thread QM
, during the running, one HttpProcessor thread suddenly : switch to returning IP address instead of the hostname. Does anyone see : similar problem before or have any suggestion? Is the macine otherwise (that is, outside of Tomcat) able to perform a reverse lookup of the IP? Because if the reverse

Re: getRemoteHost return IP address

2004-07-09 Thread Michael Tang
that trigger the call to return IP address afterwards. -Michael From: QM [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: getRemoteHost return IP address Date: Fri, 9 Jul 2004 17:59:17 -0500 On Fri, Jul 09, 2004 at 06:49:51PM +, Michael

Need directions on how to connect to an IP address

2004-06-12 Thread Reid Peryam
I have no knowledge of either Ant or Tomcat other than a partner told me that both were necessary to download a file from his IP address. This being said I have tried very hard to figure out how to use them to accomplish this. I seem to be able to start Tomcat up and shut it down (seemingly

Re: Need directions on how to connect to an IP address

2004-06-12 Thread Jacob Kjome
At 10:54 PM 6/12/2004 -0400, you wrote: I have no knowledge of either Ant or Tomcat other than a partner told me that both were necessary to download a file from his IP address. U. you need to download a file or you need to host a file for download by others? If the latter, you might

Re: http://localhost/ works but http://ip address/ doesn't

2004-03-26 Thread Ted Anagnost
Hello Christopher, I changed tomcat to use port=80 and http://192.168.1.100/ works but http://ip address/ still does not work. What do you suggest? Thanks, Ted - Original Message - From: Christopher Watson [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday

Re: http://localhost/ works but http://ip address/ doesn't

2004-03-24 Thread Ted Anagnost
that you can enable Internet users to access. For that, http is unselected. If I select it, and select edit, it has the following fields and values: Field: Name or IP address of the computer hosting this service on the network Value: 192.168.1.0 Field: External port number for this service Value: 80

RE: http://localhost/ works but http://ip address/ doesn't

2004-03-24 Thread Christopher Watson
to 'route' between post 80 and port 8080? Is that configured OK to work with your public IP address? If there's not 'routing' between 80 and 8080 Then, does http://thepublicipaddress:8080/ work - (this may well have been stopped by the isp's firewall). If it does, you may want to start tomcat on port

Re: http://localhost/ works but http://ip address/ doesn't

2004-03-22 Thread Parsons Technical Services
Ted, Last thing first. I did find you can set the IP with address=??? in the server.xml. Check for this. Unless you have a specific need to you can remove it. Now in case that is not the issue: Sitting at you windows box that is running TC you can open IE and access http://localhost but if

Re: http://localhost/ works but http://ip address/ doesn't

2004-03-21 Thread Ted Anagnost
filter on an IP. Doug www.parsonstechnical.com - Original Message - From: Ted Anagnost [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 19, 2004 3:36 AM Subject: http://localhost/ works but http://ip address/ doesn't http://localhost/ works but http://ip address/ doesn't

http://localhost/ works but http://ip address/ doesn't

2004-03-19 Thread Ted Anagnost
http://localhost/ works but http://ip address/ doesn't. Internet Explorer gives a Cannot find server message. I have tomcat 5.0.18 (without apache). I can ping my IP externally. I have port forwarding enabled on my router. Is there something I need to do to server.xml to enable this to work

Re: http://localhost/ works but http://ip address/ doesn't

2004-03-19 Thread Parsons Technical Services
. Doug www.parsonstechnical.com - Original Message - From: Ted Anagnost [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 19, 2004 3:36 AM Subject: http://localhost/ works but http://ip address/ doesn't http://localhost/ works but http://ip address/ doesn't. Internet Explorer

Server ip address

2004-02-18 Thread Eric VERGNAUD
Hi, I'm new to this list, so I apologize if this question has been asked a thousand times. I'm trying to get Tomcat to listen on a specific IP address since there are 2 network adapters on my server. How do I do this ? --- Eric VERGNAUD - JLynx Software Cutting-edge

Re: Server ip address

2004-02-18 Thread Parsons Technical Services
http://jakarta.apache.org/tomcat/faq/misc.html#ip http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html - Original Message - From: Eric VERGNAUD [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 9:35 PM Subject: Server ip address

Re: Server ip address

2004-02-18 Thread Eric VERGNAUD
le 19/02/04 4:00, Parsons Technical Services à [EMAIL PROTECTED] a écrit : http://jakarta.apache.org/tomcat/faq/misc.html#ip http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html Thanks --- Eric VERGNAUD - JLynx Software Cutting-edge technologies and

Listen on specific ip address....

2003-11-13 Thread RPITRE
Hello All and thanx in advance for any help I need my webapp to listen on port 80 on a specific ip address..this box that I have tomcat installed on, also has IIS installed.when I added address=192.168.100.25 and changed port=8080 to port=80 on the connector string below, tomcat

RE: Listen on specific ip address....

2003-11-13 Thread Shapira, Yoav
Howdy, Do you mean listen only on that IP address (i.e. your server has multiple IP addresses) or accept connections only from a certain IP address? The latter can be done with the RemoteAddressFilter that ships with tomcat. Yoav Shapira Millennium ChemInformatics -Original Message

RE: Listen on specific ip address....

2003-11-13 Thread RPITRE
tomcat picks on all three ip addressesmake more sense??? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:39 PM To: Tomcat Users List Subject: RE: Listen on specific ip address Howdy, Do you mean listen only on that IP

session hijacking and tying session to IP address with filter

2003-10-28 Thread Adam Hardy
What does everyone think of the idea of noting the IP address in the session so that session hijackers identified if they try to steal a session that has a different IP address from their own? Are there any drawbacks to this method? Nobody can spoof an IP address and still get back

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Christopher Schultz
Adam, What does everyone think of the idea of noting the IP address in the session so that session hijackers identified if they try to steal a session that has a different IP address from their own? Are there any drawbacks to this method? Nobody can spoof an IP address and still get back

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Tim Funk
) -Tim Adam Hardy wrote: What does everyone think of the idea of noting the IP address in the session so that session hijackers identified if they try to steal a session that has a different IP address from their own? Are there any drawbacks to this method? Nobody can spoof an IP address

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Adam Hardy
On 10/28/2003 12:06 PM Tim Funk wrote: I think they can and you'll break AOL users. AOL and other large entities sometimes employ megaproxies where the user might appear to be coming from different ip addresses. OK I guess if I write a filter to reject requests where the IP address doesn't

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Adam Hardy
On 10/28/2003 12:06 PM Tim Funk wrote: I think they can and you'll break AOL users. AOL and other large entities sometimes employ megaproxies where the user might appear to be coming from different ip addresses. The guaranteed way to prevent session hijacking is by using ssl. (And making sure

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Frode E. Moe
On Tue, Oct 28, 2003 at 13:23:43 +0100, Adam Hardy wrote: On 10/28/2003 12:06 PM Tim Funk wrote: I think they can and you'll break AOL users. AOL and other large entities sometimes employ megaproxies where the user might appear to be coming from different ip addresses. The guaranteed way

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Tim Funk
IIRC, AOL users can use any web browser. -Tim Adam Hardy wrote: OK I guess if I write a filter to reject requests where the IP address doesn't match the one in the session, then I can always make an exception for AOL browsers - assuming I can identify them from the browser user-agent

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Adam Hardy
On 10/28/2003 01:30 PM Frode E. Moe wrote: On Tue, Oct 28, 2003 at 13:23:43 +0100, Adam Hardy wrote: BTW, what are css attacks? Cross-site scripting attack. If an attacker can put text into your application which are echoed back verbatim within the HTML source for different users, the attacker

RE: session hijacking and tying session to IP address with filter

2003-10-28 Thread Morgan Pyne
Hi Adam, Tying sessions to a particular IP address would be bad for more than just AOL users. It is very common in corporations and organisations to have multiple proxy servers/virus scanners through which client HTTP requests are 'round-robbined' or load-balanced. Each HTTP request will thus

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Adam Hardy
On 10/28/2003 01:49 PM Morgan Pyne wrote: And I actually find it a bit disturbing that in this day and age of somebody would be called anal about security for simply implementing their website via SSL :-) - I would consider this to be a minimum requirement and only the first step for any

Allow only one IP address to access

2003-10-23 Thread ambiesense
Hi, how can I restrict access to a certain URL (or URL pattern i.e. /my/admin/*) to only one given IP address. I want that only one IP address (defined by me) can access a certain part of my page. No user logging should appear for that. Also, how can the IP address be identified within the JSP

Re: Allow only one IP address to access

2003-10-23 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/security.html#restrict -Tim [EMAIL PROTECTED] wrote: Hi, how can I restrict access to a certain URL (or URL pattern i.e. /my/admin/*) to only one given IP address. I want that only one IP address (defined by me) can access a certain part of my page

Using 2 IP Address in one tomcat

2003-10-08 Thread Srinivasu Gandu
Hi All, I am using tomcat 4.1.24 Standalone on linux red hat machine. J2EE architecture. I have two applications to launch in same machine tomcat (one instance). How do I do the following configuration in server.xml? Example: 1) I have people hitting using www.domain1.com (IP Address:000.00.00.0

RE: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-22 Thread David Wynter
Hi, I have read dozens of archived posts on virtualhost. I have distilled my httpd.conf and server.xml back to what seems to be the recommended approach, see below. But now I can see no sites on any URL. I have a suspicous End event threw exception in the catalina.out log, which suggests a

Re: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-22 Thread John Turner
David Wynter wrote: Hi, It seems that the second VirtualHost I have set up for my second domain name is not paasing the requests through mod_jk to Tomcat. It is not even clear that you can support 2 virtualhosts for different domains with the same IP address and port 80. This is a separate

Re: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-22 Thread John Turner
Advice: Forget about servlets. Forget about serving all content from a servlet. Too many variables, causing you too much confusion. Take it one step at a time. First: set up Tomcat so that you have 2 virtual hosts. Each virtual host needs a SEPARATE appBase. If BOTH virtual hosts are to

Re: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-22 Thread John Turner
that you can support 2 virtualhosts for different domains with the same IP address and port 80. This is a separate problem to the www.stpenable.com not redirecting to www.stpenable.com/se/servlet/se/templates/index.vm but it still affects me. Is the only way I can support a second virtual host

IP address Assignment problem

2003-08-22 Thread J Raf
Hello, I'm running Apache Tomcat ver. 4.1 on a Windows 2000 server. The machine has multipe IP addresses. I have configured Apache Tomcat in server.xml to run on a specific IP address port 80 as follows : Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80

2 VirtualHosts same IP address and port on Tomcat not working

2003-08-21 Thread David Wynter
Hi,. I have read John Turner HowTo and the Galatea ones too. I have tried multiple different combinations of these. I found John's assetion that Tomcat does not generate multi VirtualHosts, but you can take the generated one, insert at the bottom of the httpd.conf and modify it to work. I know

Re: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-21 Thread John Turner
I think there's some confusion...you only need this in workers.properties: # BEGIN workers.properties worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 .host = location of Tomcat When I first started trying to connect Tomcat and Apache a year ago, I

RE: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-21 Thread David Wynter
August 2003 14:59 To: Tomcat Users List Subject: Re: 2 VirtualHosts same IP address and port on Tomcat not working I think there's some confusion...you only need this in workers.properties: # BEGIN workers.properties worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost

RE: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-21 Thread David Wynter
Actually I should qualify what I said. I have stpenable as the default Host so you can see www.stpenable.com/se/servlet/se/templates/index.vm but for some reason you cannot see www.roamware.co.uk/rwsite/servlet/rwsite/templates/index.vm which is the second of the VirtualHosts in my conf file.

Re: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-21 Thread John Turner
Did you remove the Context entries for some reason? They are critical. Also, in httpd.conf you have: # Static files Alias /rwsite /usr/local/tomcat/webapp1/rwsite and later JkMount /rwsite/servlet/* worker1 JkMount /rwsite/*.vm worker1 Thus, the URLs that Apache would expect would

RE: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-21 Thread David Wynter
Hi, It seems that the second VirtualHost I have set up for my second domain name is not paasing the requests through mod_jk to Tomcat. It is not even clear that you can support 2 virtualhosts for different domains with the same IP address and port 80. This is a separate problem

RE: 2 VirtualHosts same IP address and port on Tomcat not working

2003-08-21 Thread David Wynter
sleep. Regards, David -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: 21 August 2003 20:39 To: Tomcat Users List Subject: Re: 2 VirtualHosts same IP address and port on Tomcat not working Did you remove the Context entries for some reason? They are critical

AccessLogValve remote ip address problem

2003-08-18 Thread Steve Gruverman
I have an access log set up and (mostly) working for a context running in Tomcat 4.1.12. The %a replacement string only occasionally yields an ip address, more often shows up as a string of HTML from the served page. I did not find this reported in the bug database or in elsewhere

valves, and filtering by ip address

2003-05-31 Thread Vladimer Shioshvili
doesn't have a specific ip address.. but then i think i am missing something and i get authentication window three times and then get 401 error.. i am assuming that i am missing realm setup. any lead would be greatly appreciated.. Vladimer Shioshvili QRC Division of Macro

configuring server.xml with a server with more than 1 IP address

2003-03-26 Thread Chris Gokey
In server.xml, I'm looking for a way to specify both the host name and port used for the Server port=8005 shutdown=SHUTDOWN debug=0 declaration. Something like: Server address=gcmddev.sesda.com port=8005 shutdown=SHUTDOWN debug=0. (similiar to how you would configure the HTTP connector) I'm

Re: configuring server.xml with a server with more than 1 IP address

2003-03-26 Thread Tim Funk
The shutdown listerner always listens on localhost. So if you rn multiple tomcat instances, you need to use different shutdown ports. If you want them accessible from the outside (which is a real bad idea), use plug proxy. -Tim Chris Gokey wrote: In server.xml, I'm looking for a way to

restricting accesb by ip address

2003-03-20 Thread Neil Blue
Hello, I am using tomcat4 and would like to restrict access to a set of jsp pages, based on the IP address of the client. I have found how to do this with apache, but I am using tomcat standalone. Please can anyone tell me if this is possible with Tomcat standalone. Neil

Re: restricting accesb by ip address

2003-03-20 Thread Tim Funk
Try the Remote Address Filter http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html -Tim Neil Blue wrote: Hello, I am using tomcat4 and would like to restrict access to a set of jsp pages, based on the IP address of the client. I have found how to do this with apache, but I am

RE: restricting accesb by ip address

2003-03-20 Thread graghupathy
if it is a full application please look at Valve tag in server.xml Thanks guru -Original Message- From: Neil Blue [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 11:55 To: '[EMAIL PROTECTED]' Subject: restricting accesb by ip address Hello, I am using tomcat4 and would like to restrict

RE: restricting accesb by ip address

2003-03-20 Thread graghupathy
PROTECTED] Sent: 20 March 2003 12:04 To: [EMAIL PROTECTED] Subject: RE: restricting accesb by ip address if it is a full application please look at Valve tag in server.xml Thanks guru -Original Message- From: Neil Blue [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 11:55 To: '[EMAIL

RE: restricting accesb by ip address

2003-03-20 Thread Neil Blue
] [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 12:05 To: [EMAIL PROTECTED] Subject: RE: restricting accesb by ip address Context path=/admin docBase=../server/webapps/admin debug=0 privileged=true !-- Uncomment this Valve to limit access to the Admin app to localhost for obvious security

How to get IP address Tomcat bound to.

2003-01-26 Thread Kirill Maximov
I have a programming question - how can I get the IP address the TomCat is bound to ? Is this possible? I suppose, I have to use some internal TomCat API here .. With kind regards, Kirill Maximov -- Kirill Maximov aka KIR [EMAIL PROTECTED] | http://www.maxkir.com

Re: How to get IP address Tomcat bound to.

2003-01-26 Thread Mark
At 1/26/2003 04:57 PM, you wrote: I have a programming question - how can I get the IP address the TomCat is bound to ? Is this possible? I suppose, I have to use some internal TomCat API here .. With kind regards, Kirill Maximov Not sure if I understand your question

Re: How to get IP address Tomcat bound to.

2003-01-26 Thread Kirill Maximov
On 0, Mark [EMAIL PROTECTED] wrote: At 1/26/2003 04:57 PM, you wrote: I have a programming question - how can I get the IP address the TomCat is bound to ? Is this possible? I suppose, I have to use some internal TomCat API here .. With kind regards, Kirill Maximov Not sure

RE: How to get IP address Tomcat bound to.

2003-01-26 Thread Turner, John
How does this help if there are multiple IP addresses on a single host? John -Original Message- From: Kirill Maximov [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 26, 2003 2:04 PM To: Tomcat Users List Subject: Re: How to get IP address Tomcat bound to. On 0, Mark [EMAIL

RE: How to get IP address Tomcat bound to.

2003-01-26 Thread Mark
Good question...and I don't know the answer. I've never deployed on a host with more than one IP address. Out of curiousity, any idea what IP address might be returned? At 1/26/2003 02:31 PM, you wrote: How does this help if there are multiple IP addresses on a single host? John

Re: How to get IP address Tomcat bound to.

2003-01-26 Thread Craig R. McClanahan
On Sun, 26 Jan 2003, Kirill Maximov wrote: Date: Sun, 26 Jan 2003 16:57:17 +0300 From: Kirill Maximov [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: How to get IP address Tomcat bound to. I have a programming

  1   2   >