-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm having some trouble trying to get Apache to use ReverseProxy but
also acknowledge and use the Allow from and Deny from clauses for a web
server. My setup is the following:
------> [app-server1]
[WWW server] <-----|
------> [app-server2] etc.
I want people to hit the webserver with URL like
https://www.example.com/someapp/ and the webserver knows that someapp
is currently hosted on app-server1, so reverse proxies there and all is
good with the world. This works well with:
<Directory "/someapp">
ProxyPass http://app1.example.com:18001/
ProxyPassReverse http://app1.example.com:18001/
</Directory>
However, if I add access credentials, such as:
<Directory "/someapp">
ProxyPass http://app1.example.com:18001/
ProxyPassReverse http://app1.example.com:18001/
Order Allow,Deny
Allow from 1.2.3.4
Deny from all
</Directory>
I still am able to access the reverse proxied hosts from anywhere on the
internet, not just 1.2.3.4.
Does Apache support the type of checking I'm doing here? And if so, how?
Pointers in the right direction would be greatly appreciated.
Best regards,
-->Gar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFF3H5TK36C50PvIR8RAjGmAJ9gtrmSbPH6rq8mi4ZIbDCZzrKBMQCdEQem
lI+oSUXTBCkQbz49kwyz+L8=
=tP9J
-----END PGP SIGNATURE-----
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!