Mobile app version of vmapp.org
Login or Join
Michele947

: Apache: Server the same document root from multiple ports Consider the following apache site file: <VirtualHost *:9000> SSLEngine on ... DocumentRoot /var/www <Directory

@Michele947

Posted in: #Apache2 #Virtualhost

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Michele947

1 Comments

Sorted by latest first Latest Oldest Best

 

@Shelley277

Try this :

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


Source : link

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme