I have 3 domains and several sub domains in one user, for example:
Then I want to use Apache Proxy Pass on the domain foo.com
by making configuration in
However, all domains and sub domains point to the proxy, how to make only foo.com point to the proxy?
Thank you.
- foo.com
- a.foo.com
- b.foo.com
- bar.com
- a.bar.com
- baz.com
Then I want to use Apache Proxy Pass on the domain foo.com
by making configuration in
/usr/local/directadmin/data/templates/custom/virtual_host2.conf
|*if DOMAIN="foo.com"|
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:2368/
ProxyPassReverse / http://localhost:2368/
RequestHeader set X-Forwarded-Proto "https"
|*endif|
However, all domains and sub domains point to the proxy, how to make only foo.com point to the proxy?
Thank you.