RE: automatically redirect http to https in tomcat

2003-02-11 Thread Mohamed Nasser
In the httpd.conf under the virtual host listening to port 80 have the line
RedirectPermanent / https://my.domain.com 
if you want it to do for specific content you may have to play with the above 
statement or redirect rules. The above would be for all http requests.
-MN

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tue, February 11, 2003 4:12 PM
To: [EMAIL PROTECTED]
Subject: automatically redirect http to https in tomcat


Is it possible to automatically redirect any http request to https in an
Apache + Tomcat environment? For example, If I enter
http://my.domain.com/mycontext  , I would be
automatically redirected to https://my.domain.com/mycontext?

 

Regards,

 

 

 

PQ

 

"This Guy Thinks He Knows Everything"

"This Guy Thinks He Knows What He Is Doing"

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: tomcat 4.1.12 ssl connector stop responding

2003-02-04 Thread Mohamed Nasser
I know there was a bug with the coyote connector for tomcat 4.1.12 as I configured 
with apache. I upgraded to 4.1.18 and I have had no problems.

-Original Message-
From: ing.Marco Baiguera [mailto:[EMAIL PROTECTED]]
Sent: Tue, February 04, 2003 5:09 AM
To: [EMAIL PROTECTED]
Subject: tomcat 4.1.12 ssl connector stop responding


i'm using tomcat 4.1.12 on jdsk 1.4.0 as a standalone server with coyote http 1.1 
connector 
having http (8080) connector accessible from internal lan only and https (8443) 
accessible from external hosts (natted to port 443)
after two-three days tomcat stops responding on the https connector (runs ok on http) 
without any exception or log trace.
any hint?
follows my connector configuration.
what about "useURIValidationHack" (can't find any documentation on this) ?
thank you

 
  


---
Ing. Marco Baiguera
Web Application Designer

T.C.TELECENTRAL s.r.l.
Via Fura, 10
25122 Brescia - Italy
Tel  +39 030 3510711
Int + 39 030 3510816
NB. Nel rispetto della legge sulla privacy รจ fatto  divieto di 
includere il presente indirizzo email in  CC, Forwards e Mailing list 
senza previa autorizzazione. In caso di violazione della suddetta 
richiesta sarete perseguiti legalmente.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




SSL negotiation between Apache2.0.43 Tomcat4.1.12 ( windows)

2003-01-24 Thread Mohamed Nasser
Hello friends,
I have configured Apache 2.0.43 to run with tomcat 4.1.12 without a hitch except for 
SSL/https.
When I place an SSLrequireSSL in the  tag of the servlet area that I am 
trying to enable ( lets say the /admin provided by Tomcat ) I get the URL changing to 
http://(servername):443/admin when I try an https connection. 
Is there something I have to change in Tomcat (maybe server.xml) to enable this 
communication to take place. 

In Tomcat 3.2.2 with apache 1.3.x this worked fine as I only placed basic 
authentication for the servlet zones and it understood that that was SSL somehow. What 
am I missing. I also tried to place the include directive in the virtual host of the 
SSL port but that did not even resolve the servlets and gave me internal error.
Any one have a quick clue. Or a document link I can read. 
Thanks for all your help
Mohamed Nasser.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




removing "/servlet" from apache to tomcat ( mod_jk) URL's

2001-02-26 Thread Mohamed Nasser

> Hello folks.
> 
> I have two implememtations of apache-tomcat.
> One has all developed servlets in webapps. In this implementation when I
> removed the  the /servlet/* ajp13 from the JkMount in the mod_jk.conf
> and left it as /* ajp13, things worked fine without the /servlet.
> However in another implementation whereby my servlets were not in webapps
> and I put the context in server.xml and in mod_jk.conf the context loaded
> successfully, however I could only get it working with /servlet/*
> although mod_jk.conf and web.xml had those servings altered. In the same
> implementation i altered admin/servlet/* to admin/* and it worked fine. 
> Is my problem just because my servlets and classes are not under webapps.
> 
> Mohamed Nasser
> 
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: mod_jk - undefined symbol

2001-01-19 Thread Mohamed Nasser

In compiling mod_jk you need to have all the *.c files accessible. Were you
in the 
/native/jk directory when you compiled and also referred to all the
*.c it needs. When all are not included you will get the symbol errors.
Mohamed

-Original Message-
From: Eric Paul [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 10:44 AM
To: [EMAIL PROTECTED]
Subject: mod_jk - undefined symbol


Hi there.  I'm trying to get Tomcat 3.2.1 working with Apache 1.3.14 on a 
Red Hat 6.2 Linux Box running 2.2.18 Kernel.  Both Apache and Tomcat were 
working on this box before I started messing with mod_jk.  I downloaded the 
latest stable source (jakarta-tomcat-3.2.1-src) and compiled mod_jk as per 
the FAQ.  I had the error message talked about in the FAQ, but the gcc line 
generated the mod_jk.so with no problems.  I copied this file into my 
libexec dir, and included the mod_jk.conf-auto in my httpd.conf file.  I 
stopped apache and tomcat, restarted tomcat, and then tried to start apache 
and got this error message:

Starting httpd: Syntax error on line 8 of 
/usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
Cannot load /usr/libexec/mod_jk.so into server: /usr/libexec/mod_jk.so: 
undefined symbol: jk_b_set_buffer_size

Line 8 of the config file is:

LoadModule jk_module libexec/mod_jk.so

I'm guessing that there must have been a problem with the compile of 
mod_jk, but not knowing enough about the source I'm not in a good position 
to go poking around and trying to fix it.  I did a search on the archive 
for jk_b_set_buffer_size but that turned up nothing.  Any ideas?

Eric


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




apache webserver and tomcat servlet engine. ( HELP)

2000-12-06 Thread Mohamed Nasser

I have installed tomcat and it runs fine on port 8080.
I do not want to use the tomcat as the webserver but only want to use its
java servlet engine.
I have httpd define at port 5080 and listening to that port in httpd.conf.
I have added the line include $TOMCAT_HOME/conf/tomcat.conf to the httpd
file, amended the server.xml, tomcat.properties file and I have pointed the
mod_jserv.so to where it was pointing when I was using jserv.
( I commented out the include jserv line in httpd). 
I have a new context created and have added it into the server.xml and the
web. xml and have a properties file for that too.
 
I can run a directory listing on both ports 5080 and 8080 with the same
results. However I cannot run my servlets on port 5080 but I can run it on
8080. The same applies for the /examples . I asked this yesterday but have
not received any answer :(
I am on Sun Solaris 7 platform.
I hope there is some one who can clue in to my "ignorance".
 
a little frustrated.
Mohamed Nasser
 
The error I receive when i run through the port configured in httpd.conf:
$ HANDLER THREAD PROBLEM: java.io.IOException: Stream broken, couldn't
demarshal string :768:389
java.io.IOException: Stream broken, couldn't demarshal string :768:389
at
org.apache.tomcat.service.connector.Ajpv12InputStream.readString(Ajp1
2ConnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextReque
st(Ajp12ConnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon
nection(Ajp12ConnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)



Apache and tomcat

2000-12-05 Thread Mohamed Nasser

Hello.
I am trying to set up Apache to work with Tomcat as  JSP/servlet engine.
I have followed as much as I could from the documentation. I have created a
zone of my own.
Somehow I am getting to a point where only the sevlet does not run.
 
With port 8080 turned on ( line existing ) in the server.xml I get the
examples and my servlet to run without a problem using the URL.
However if I use the port defined in httpd.conf "" then I get a time out
on my page. This is all http. 
However with port  I can reach through a browse to the file and get to
the page for examples or my zone. Execution of the servlet program produces
a time out followed by an error on the screen that started the process that
looks like this:
$ HANDLER THREAD PROBLEM: java.io.IOException: Stream broken,
couldn'tdemarshal string :768:384java.io.IOException: Stream broken,
couldn't demarshal string :768:384 at
org.apache.tomcat.service.connector.Ajpv12InputStream.readString(Ajp12Connec
tionHandler.java, Compiled Code) at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp1
2ConnectionHandler.java, Compiled Code)at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)at java.lang.Thread.run(Thread.java, Compiled Code)

 This error was produced with and without the connector line port 8080 from
server.xml.
 
I am just not sure what have I missed to make my servlets run through the
port defined in httpd.conf file. I have added the tomcat.conf in httpd.conf
( removed jserv.conf as I was running jserv before)..pointed the conf file
to where the mod_jserv.so is located ( not in libexec) and made all the
configuration changes. Being able to browse the directories tells me the
configuartion is right, however I can't run my servlets.
any help will be appreciated.
 
Mohamed Nasser