Many thanks Eric -
Yes, I thought it must be supported ( and finally found :
https://www.oreilly.com/library/view/apache-the-definitive/0596002033/ch04s02s04.html
- "Port Based Virtual Hosts" -
) - but it is still not working.
All Port servers still serve the default Apache websites -
I guess I need to put these website into separate VirtualHosts
for the *:80 and *:443 ports only ?
Here is the output of httpd -S , with all IP & name details redacted
(replaced by $* variable names which should be self explanatory):
# httpd -S
VirtualHost configuration:
*:2x080 $HOST_DNS_NAME (/etc/httpd/conf.d/A.conf:5)
*:1x080 $HOST_DNS_NAME (/etc/httpd/conf.d/B.conf:5)
*:443 $HOST_DNS_NAME (/etc/httpd/conf.d/ssl.conf:56)
ServerRoot: "/etc/httpd"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/etc/httpd/logs/error_log"
Mutex proxy-balancer-shm: using_defaults
Mutex rewrite-map: using_defaults
Mutex authdigest-client: using_defaults
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex authn-socache: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/run/httpd/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex authdigest-opaque: using_defaults
PidFile: "/run/httpd/httpd.pid"
Define: _RH_HAS_HTTPPROTOCOLOPTIONS
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: MODPERL2
User: name="apache" id=48
Group: name="apache" id=48
I'll try putting the default *:80 Apache sites in separate vhosts also.
Thanks & Best Regards,
Jason
On 27/12/2021, Eric Covener <[email protected]> wrote:
>> I guess port based VirtualHosts are not supported ?
>
> It should work just fine and is how basic SSL configurations work. I
> suggest looking at e.g. apachectl -S output and make sure these files
> are being loaded and aren't already listed in an earlier VirtualHost.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]