httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yann Ylavic <ylavic....@gmail.com>
Subject Re: [users@httpd] Virtual/Proxy setup to internal webserver
Date Tue, 06 Feb 2018 08:51:11 GMT
On Tue, Feb 6, 2018 at 8:50 AM, Bret Stern
<bret_stern@machinemanagement.com> wrote:
> I have apache24 running on freebsd.
>
> Can I configure virtual host to direct a request for forum.mydomain.com
> to an internal webserver on my network
>
> eg; DocumentRoot "forum.mydomain.com"

This would be for local documents.

> or "xxx.xxx.xx.xxx"
>
> I tried using Proxy mod but not sure how to setup.

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
<VirtualHost *:80>
    ServerName forum.mydomain.com
    ProxyPass / http://internal_webserver/
    ProxyPassReverse / http://internal_webserver/
</VirtualHost>


Regards,
Yann.

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


Mime
View raw message