Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

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

Consider the following apache site file:

<VirtualHost *:9000>
    SSLEngine on
    DocumentRoot /var/www
    <Directory ...>

This specific VirtualHost serves content in SSL on port 9000. I would like it to serve the exact same contents on a few different port - say, 9000-9005 and 9010.

Is there a serve the content from multiple ports without duplicating the VirtualHost clause?

share|improve this question
up vote 1 down vote accepted

Try this :

<VirtualHost *:80 *:8080>

Source : link

share|improve this answer
Spot on. Don't know how I missed it. Thanks! – Adam Matan Jan 28 '14 at 16:54
You're welcome :) – Ranjith Jan 28 '14 at 16:55

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.