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 Answer 1

1

Try this :

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

Source : link

0

Your Answer

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

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