Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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>
  # some other app

<VirtualHost *:80>
  # *
  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). -> ->

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)?

share|improve this question
up vote 3 down vote accepted

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

share|improve this answer
Minutes later and it's running - thanks! – Marcel Jackwerth Dec 10 '09 at 0:06
Very nice software, didn't know it. +1 – drAlberT Dec 10 '09 at 9:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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