I currently have an application running on Apache. It uses subdomains to distringuish between user-accounts.

I'd like to add SSL support (wildcard). A solution which is quite common seems to be the following (just use two virtual hosts).

<VirtualHost *:80>
  # sauron.com
  # some other app

<VirtualHost *:80>
  # *.frodo.com
  Include app.conf

<VirtualHost *:443>
  Include a file

  SSLEngine On

However I'd rather like to have an SSL Proxy in front of the *:80 virtual host. I ran accross mod_proxy but the samples I found do not handle subdomains (or only with manual configuration of each subdomain).

 user1.frodo.com:433 -> user1.frodo.com:80
 userX.frodo.com:433 -> user1.frodo.com:80

Any ideas how I can achieve this with Apache proxy? Or should I use an additional proxy server (nginx?) for that? Are there any sample configs then (couldn't find any for this subdomain case for nginx)?


You should look at pound. It can do what you're asking for, and a lot more.

  • Very nice software, didn't know it. +1 – drAlberT Dec 10 '09 at 9:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.