1

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?

1

Try this :

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

Source : link

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.