You can set up a reverse proxy and include access control like this: LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so ProxyRequests Off <VirtualHost 10.0.0.1:80> ServerName reverse-proxy.example.com <Location /> allow from 1.2.3.4 2.2.3.4 deny from all ProxyPass http://internal.example.com/ ProxyPassReverse http://internal.example.com/ </Location> </VirtualHost> No need for mod_rewrite and in my opinion the configuration is much clearer to read. The documentation for proxying is at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html and for access control is at http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html (for the general reader, these are the docs for apache 2.2 which is what Michael reports he is using. The equivalent docs for up-to-date versions are under http://httpd.apache.org/docs/2.4/ etc.) HTH, Pete -- Openstrike - improving business through open source http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107
Attachment:
pgpqYkBKfn93Y.pgp
Description: PGP signature