Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question