SSL using Windows? Please tell me how...

Need help? Post your questions here.

Moderator: moderators

SSL using Windows? Please tell me how...

Postby flacflac » Mon Jun 01, 2009 9:24 am

Hi everyone,

I am new to subsonic but thanks to Sindre's great programming my installation already works and is remotely accessible.

I would really like to run this via SSL, but even after reading many forum threads I am still not clear on how to do this.

1) My installation runs on Windows - I read I that I need to run Tomcat, but really I don't know why and how I would use that or install it

2) What changes do I have to do in my config to run this via SSL?

3) What port will SSL run on? Do I need to open up a new port and will the address my server is reached under have to change with it? (from server:8080 to server:443 ???)

Sorry, I'm a newbie, but I would really like to run this more securely.

Thank you. :)
flacflac
 
Posts: 141
Joined: Mon Jun 01, 2009 7:43 am

Postby donpearson » Tue Jun 02, 2009 7:05 pm

Facebook Group:
http://www.facebook.com/groups/subsonic.group/

Image
donpearson
 
Posts: 361
Joined: Wed Oct 15, 2008 3:53 pm
Location: UK

Postby flacflac » Tue Jun 02, 2009 8:16 pm

Hi Don, thanks for the reply.

I am certainly not a pro with either Apache or SSL, but I do consider myself relatively capable when it comes to setting up non-trivial software. I was always running an SSL ftp server, but this SSL protocol was taken care of by the server software itself running on a regular Vista or XP machine.

I guess what I am looking for does not exist - a step by step tutorial to get Subsonic to work on an Apache server in a Windows environment. I can figure out how to install apache, how to set up SSL but I just don't understand how I get Subsonic to run ON apache - currently it runs as a jetty service on its own. What do I have to do here to make it use the apache ssl?

Sorry, I know this sounds like newbie-questions, but at least I'm a newbie that gets it quickly once its explained well just once. :)

Thank you! :)
flacflac
 
Posts: 141
Joined: Mon Jun 01, 2009 7:43 am

Postby jigsaw » Tue Jun 02, 2009 9:38 pm

flacflac wrote: I can figure out how to install apache, how to set up SSL but I just don't understand how I get Subsonic to run ON apache - currently it runs as a jetty service on its own. What do I have to do here to make it use the apache ssl?


Subsonic runs on an application server. At this time it can be run on Tomcat or Jetty.
I would suggest you read this tutorial regarding integrating it in your Apache.
http://forum.subsonic.org/forum/viewtopic.php?t=1569
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby flacflac » Fri Jun 05, 2009 12:04 am

Thank you for the link. I am unsure what version of Subsonic organon installed to work with a running Apache. The regular Windows installer?

My apache is in C:\networking\Apache, so where would subsonic have to be installed to?

Would be great to make this work. Thank you.

:)
flacflac
 
Posts: 141
Joined: Mon Jun 01, 2009 7:43 am

Postby jigsaw » Fri Jun 05, 2009 7:41 pm

It doesn't matter where Tomcat is installed, you just need to configure apache to redirect e.g. <yourhost>/subsonic to the tomcat. Both the standalone Jetty-version and the tomcat-version should be able to be integrated with apache, so that does not matter neither.

For setting up tomcat with apache in a windows environment you could check this site out: http://www.slideshare.net/topsealrocker ... windows-xp
I haven't set it up myself as I am running on a Linux environment, but I browsed the howto and it seemed quite good and straight-forward.
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby flacflac » Fri Jun 05, 2009 7:46 pm

Thanks for the reply, Jigsaw. Which one of the 2 servers would be offering the SSL support in this setup? Both? Only Apache?

:shock:


Thanks. :)
flacflac
 
Posts: 141
Joined: Mon Jun 01, 2009 7:43 am

Postby jigsaw » Fri Jun 05, 2009 7:57 pm

The SSL configuration is done in Apache.
Apache is a web-server
Tomcat and Jetty are application servers which Subsonic can run on.
You can setup Apache to serve request through to the application server, be that Tomcat or Jetty ( doesn't matter ).

Is that clearer?
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby flacflac » Fri Jun 05, 2009 9:32 pm

Hi Jigsaw,

I understand now, thank you. I followed the tutorial you linked to, and for a moment I thought I had it - but after the second restart of my server my starting page when typing LOCALHOST is localhost/xampp (that was the toolbox my apache install came with). How can I have it display Tomcat's starting page again?

Thank you.

Oh and: that one moment where it correctly showed Tomcat's page I tried localhost/subsonic, which worked, but https.... with the port I assigned in the conf of Apache would NOT work. What would I have to change here?

Sorry, lots of confusion on my end.
flacflac
 
Posts: 141
Joined: Mon Jun 01, 2009 7:43 am

Postby flacflac » Fri Jun 05, 2009 10:59 pm

Okay, I finally got Tomcat to be a SECURE Tomcat.

Apparently on Windows you need to delete a file called tcnative-1.dll for SSL to work. I have no clue why, but after 6 hours of increasing insanity this is what's at fault. Weird. Anyways, I will try and work Subsonic with Tomcat for now, the incorporation into Apache will have to wait, don't wanna bug you much more with this. :)

If anyone needs some help setting this up on Windows, let me know, maybe I can help. :P

Thanks.
flacflac
 
Posts: 141
Joined: Mon Jun 01, 2009 7:43 am

Postby jigsaw » Sat Jun 06, 2009 1:33 pm

flacflac wrote:If anyone needs some help setting this up on Windows, let me know, maybe I can help. :P


Hi flacflac

Good to hear that you managed to work it out. I would suggest that you compose a tutorial for the setup and post it in the tutorials section of this forum. I think that will be very helpful for new users which then doesn't have to search around in the entire forum to locate the info.

-jigsaw
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway


Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests