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?

1 Answer 1


Try this :

<VirtualHost *:80 *:8080>

Source : link


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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