Two VMs: Ubuntu+Apache, Win2008+Subsonic. How to do SSL?

Need help? Post your questions here.

Moderator: moderators

Two VMs: Ubuntu+Apache, Win2008+Subsonic. How to do SSL?

Postby wikiterra » Wed Mar 31, 2010 10:06 pm

So far, subsonic works and I have proxypass configured in apache so all I have to do is go to myserver.net/music and I get subsonic.

Here's my relevant configuration.

Code: Select all
<VirtualHost *:80>
...
    ProxyPass /music http://myserver.net:8181/music
    ProxyPassReverse /music http://myserver.net:8181/music

    <Location /music>
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        Order deny,allow
        Allow from all
     </Location>
...
</VirtualHost>


Subsonic is configured to have /music as the root. Also, my router directs port 8181 to the windows VM (with subsonic) and port 80 and 443 to the ubuntu VM (with apache).

My question is, how do I enable SSL? Is there something I have to do on the windows VM to subsonic? Or will the same work inside of the VirtualHost for ssl in apache? What I mean is, if I just add the following to the ssl conf file, will it work --

Code: Select all
<VirtualHost *:443>
...
    ProxyPass /music http://myserver.net:8181/music
    ProxyPassReverse /music http://myserver.net:8181/music

    <Location /music>
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        Order deny,allow
        Allow from all
     </Location>
...
</VirtualHost>


Or do I need to do something different? (I have a feeling from what I've already read that this is missing something.)

I've searched the forums, and nobody has a clear answer to this. The only responses I've seen are, go search google, or go read this about apache and ssl. I already have a certificate installed and working for other parts of my website on the ubuntu VM, I just need to know how to connect apache and subsonic so that it works with ssl. And yes, I am continuing to search and read on the topic.

If anyone could provide the specific lines I would need to change in my ssl conf file, that would be awesome, or even an already existing guide for this specific purpose that I haven't yet found. I'd be more than happy to do a write up once I have a solution.
wikiterra
 
Posts: 3
Joined: Wed Mar 31, 2010 1:43 am

Postby wikiterra » Thu Apr 01, 2010 3:20 am

Okay, I found the solution. In fact there needs to be just one addition to the conf file from what I wrote above. Here's the relevant section:

Code: Select all
<VirtualHost *:443>
  ...
  # proxy info
  SSLProxyEngine On
  ProxyPass /music http://192.168.2.142:8181/music
  ProxyPassReverse /music http://192.168.2.142:8181/music

  <Location /music>
      Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
      Order deny,allow
      Allow from all
  </Location>
  ...
<VirtualHost *:443>


As you can see the only difference is "SSLProxyEngine On." (Also, I changed the url to use the LAN ip of the windows VM.)

So there.

PS, I found this page helpful: Apache – ProxyPass
wikiterra
 
Posts: 3
Joined: Wed Mar 31, 2010 1:43 am


Return to Help

Who is online

Users browsing this forum: No registered users and 14 guests