You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Pi...@sita.co.za on 2006/09/12 17:56:42 UTC
[users@httpd] Access restriction control
How can I configure the HTTP server to only allow certain IP addresses to
access the site without including java scripts in the HTML pages? I am
running 2 servers, one for production environment and one for a QA
environment, but I want only certain users to access the QA environment.
Any suggestions or solutions?
Regards,
Pierre
This email and any accompanying attachments may contain confidential and
proprietary information. This information is private and protected by law
and, accordingly, if you are not the intended recipient, you are requested
to delete this entire communication immediately and are notified that any
disclosure, copying or distribution of or taking any action based on this
information is prohibited. Emails cannot be guaranteed to be secure or free
of errors or viruses. The sender does not accept any liability or
responsibility for any interception, corruption, destruction, loss, late
arrival or incompleteness of or tampering or interference with any of the
information contained in this email or for its incorrect delivery or
non-delivery for whatsoever reason or for its effect on any electronic
device of the recipient.
Re: [users@httpd] Access restriction control
Posted by Joshua Slive <jo...@slive.ca>.
On 9/12/06, Pierre.Rust@sita.co.za <Pi...@sita.co.za> wrote:
>
> How can I configure the HTTP server to only allow certain IP addresses to
> access the site without including java scripts in the HTML pages? I am
> running 2 servers, one for production environment and one for a QA
> environment, but I want only certain users to access the QA environment.
<Location />
Order Allow,Deny
Allow from 111.111.111/24
Allow from 222.222.222.222
</Location>
See the docs for mod_access/mod_authz_host (depending on your version).
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org