Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Consider the following apache site file:

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

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
add comment

1 Answer 1

up vote 1 down vote accepted

Try this :

<VirtualHost *:80 *:8080>
  ....
</VirtualHost>

Source : link

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

Your Answer

 
discard

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.