aspose file tools *
The moose likes Struts and the fly likes Struts app on JRUN over HTTP/HTTPs in Apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts app on JRUN over HTTP/HTTPs in Apache" Watch "Struts app on JRUN over HTTP/HTTPs in Apache" New topic
Author

Struts app on JRUN over HTTP/HTTPs in Apache

O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430

i am writing a struts based application using struts 1.2. The application is supposed to switch between both HTTP and HTTPs. To be more precise, the only page that is supposed to run on SSL is the login page.

Now i am so confused how i should implement this. The main problem that i am having is i am not sure how the webserver supports SSL.

To make it even more confusing.. the application is developed and tested on Tomcat 5.0, i know that from within tomcat i can configure the tomcat webserver to run specific 'Actions' on secure sessions this is not a problem.

The actual problem is that the application will eventually be deployed on an Apache Webserver running JRUN. This is where the problem starts. I have googled around and have not been able to clarify whether Apache
supports SSL. I have seen some articles but it all looks way too confusing. So can somebody please clarify this for me.

one important thing to note is that i will not have access to the Apache webserver so configuring it is out of the question. I might probably be able to enable SSL (if i ask nicely).

Now this is what i need to know

0. Can a struts application be developed to run on SSL on JRUN/APACHE without the need to configure Apache? If not, what are the necessary configuration needed?
1. Does Apache support SSL?
2. Does JRun support SSL?
3. If i were to implement SSL on just the Login page, what is the best and quickest approach? (the target environment is JRUN on APACHE)

The application does not really need to use SSL keys coz that is not important(i.e. they dont want to pay for it ) All its supposed to do is ensure that the data transfered is over ssl.

can u help?

Any help will be greatly appreciated.
[ October 19, 2005: Message edited by: Ziggy - [The Oracle] ]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"Ziggy - [The Oracle]",
we're a friendly bunch here at the Ranch, but we take the display name rule very seriously.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name. Accounts with invalid display names get deleted.

If you consider that I could have spent the time writing the warning reading your post instead, I hope you see the value in changing your display name promptly.

thanks,
Dave.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

We are also going to move this thread to the Struts forum.

This forum is for Servlets only questions. Since your question is about Struts, then I think that forum is more appropriate.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430

ok guys sorry about that.. i didnt realise that nick names were not allowed. i've changed the name.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Originally posted by Ziggy - [The Oracle]:
Now this is what i need to know

0. Can a struts application be developed to run on SSL on JRUN/APACHE without the need to configure Apache? If not, what are the necessary configuration needed?

No. Any time you have a web server (Apache) communicating with an App server (JRUN), you need to be able to configure a plugin on the web server. If you can't configure the web server, it won't talk to the app server. Then there's the matter of SSL. You have to configure apache to use SSL.

1. Does Apache support SSL?

Plain old Apache does not support SSL, however Apache-SSL does. You could also configure plain old Apache to use openSSL.

2. Does JRun support SSL?

I'm not very familiar with JRun, but I'm sure it supports SSL. It really doesn't need to, though, because the SSL communication will be between the user's browser and the web server. The communication between the web server and the app server is probably over a secured network anyway, so SSL generally isn't necessary for that connection.

3. If i were to implement SSL on just the Login page, what is the best and quickest approach? (the target environment is JRUN on APACHE)

The application itself doesn't know or care whether the communication is via SSL. The only thing you need to worry about inside the application is to make sure the login page is being called with https:// instead of http://

The tricky part will be configuring the web server to use SSL.

My advice is to spend some time educating yourself on how SSL works. Here is a good URL to start with.

http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security6.html


The application does not really need to use SSL keys coz that is not important(i.e. they dont want to pay for it ) All its supposed to do is ensure that the data transfered is over ssl.


In SSL, you have no choice but to use digital certificates. The choice is between a self-signed certificate, which is free, and a certificate signed by a CA (Certifying Authority) which is not free. The trouble with using a self-signed certificate is that every time the SSL page comes up, the browser will warn the user that the certificate is self-signed.



Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts app on JRUN over HTTP/HTTPs in Apache