I
I
Ilya Loopashko2020-08-06 10:39:04
Apache HTTP Server
Ilya Loopashko, 2020-08-06 10:39:04

How to correctly configure the config for the virtual host?

There is a running docker container available at www.example.ru:8096. How to properly configure the Apache config so that this container can be accessed at service.example.ru

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Loopashko, 2020-08-12
@deadloop

Found a solution, create a new config for the virtual host:

<VirtualHost *:80>
        ServerAdmin [email protected]
        ServerName subdomin.site.com
        ServerAlias www.subdomin.site.com
        ProxyRequests Off
        <Location />
                ProxyPreserveHost On
                ProxyPass http://site.com:PORT/
                ProxyPassReverse http://site.com:PORT/
        </Location>
</VirtualHost>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question