Good day -

  I am trying to setup VirtualHosts based on Port Differences only -
  is this possible ?

  ie. I have, on a Centos-7 x86_64 system with apache:
    httpd-2.4.6-97.el7.centos.2.x86_64
  installed, in separated /etc/httpd/conf.d/*.conf files:

  File conf/httpd.conf:
   Listen $VPN_IP:80

  File conf.d/ssl.conf:
   Listen $VPN_IP:443 https

  File conf.d/A.conf:

    Listen $PUBLIC_IP:10080 https
    <VirtualHost *:10080>
     Directory "/opt/A"
     ...
    </VirtualHost>

  File conf.d/B.conf:
    Listen $PUBLIC_IP:20080 https
    <VirtualHost *:20080>
     Directory "/opt/B"
     ...
    </VirtualHost>


  where $VPN_IP is our L2TP/IPSEC PPP VPN host address and
  $PUBLIC_IP is our single public DNS address for this host.
  We want it to serve pages ONLY on our VPN, or for the
  specific A & B ports, only over HTTPs .

  But the Apache Server Test Page is always getting served
  from all these ports : 80, 443, 10080, 20080 - not our
  /opt/{A,B} directories on the {1,2}0080 ports - why ?

  I guess port based VirtualHosts are not supported ?

  Could anyone please suggest a workaround / way of making
  the above work ?

  We only have one DNS record for this host.

  We'd like to have separate websites, served by the
  same IP address and hostname , but different ports.

  Is this possible to acheive with ONE apache httpd instance ?

Thanks in advance for informative replies,
Best Regards & Seasons Greetings,
Jason

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to