I have two docker containers (one for mysql and the other for wordpress). it looks like this.
I would like to link my domain (example.com) to the wordpress container. So far, I came up with this apache config file.
<VirtualHost *:80>
ServerAdmin hello@example.com
ServerName example.com
ServerAlias www.example.com
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
ProxyPass http://localhost:4568/
ProxyPassReverse http://localhost:4568/
</Location>
</VirtualHost>
Now, example.com works just fine for the home page but when I try to go to directory (say, http://example.com/product/asdasd) it redirects me to http://localhost/product/asdasd.
I have tried changing localhost in the config file with the domain name but it doesn't work;
ProxyPass http://example.com:4568/
ProxyPassReverse http://example.com:4568/
Can anyone help me to figure out what is the right config file to do so?
Thnx

