Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a virtual host that listens on port 443, 2000 and 2001. Its only purpose is to proxy all incoming traffic to a remote server. Is there a way to re-use the port number of the virtual host in the ProxyPass and ProxyPassReverse directives, for example :

<VirtualHost a.b.c:443 a.b.c:2000 a.b.c:2001>
...
  ProxyPass          /    https://1.2.3.4:%{SERVER_PORT}/
  ProxyPassReverse   /    https://1.2.3.4:%{SERVER_PORT}/
</VirtualHost>

Regards,
Willem.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.