I came across a cofig file at work, but I am unsure if the syntax is correct. Based on the documentation from apache:https://httpd.apache.org/docs/current/mod/mod_proxy.html#proxy the proxy directive's context is "virtual host", which is absolutely correct. It seems it's perfectly fine to have a config like this one below (which is the one I came across at work)
<VirtualHost *:80>
ServerName myexample.com
Redirect / https://myexample.com/
</VirtualHost>
<VirtualHost *:443>
ServerName myexample.com
SSLEngine On
SSLCertificateFile locationofcert.crt
SSLCertificateKeyFile locationofkey.key
ProxyTimeout 300
ProxyRequests on
ProxyPreserveHost On
ProxyPass / http://myexample.com:7990/
ProxyPassReverse / http://myexample.com:7990/
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
My specific question is about this part:
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
I have noticed in some examples in github that, this proxy directive is placed inside a Location tag like this:
<Location />
ProxyPass http://localhost:9000/
ProxyPassReverse http://localhost:9000/
Order allow,deny
Allow from all
</Location>
I am trying to find out what the correct syntax is. Any links to documentation would be appreciated too. Thanks!