logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Restrict Access to a set of IP in a specific URL
Author
devtakh



Joined: 18 Jan 2014
Posts: 1
Location: India

PostPosted: Sat 18 Jan '14 20:51    Post subject: Restrict Access to a set of IP in a specific URL Reply with quote

Hi,

I have Apache 2.2 installed on my Unix Server and have a couple of Application servers running each of them having similar Document Root.

For example,
The URLS will look like below

https://my-test1.com/demo/index.html
https://my-prod1.com/demo/index.html
https://my-qa1.com/demo/index.html

The directory folder looks like
/myapp/my-test1/demo/index.html
/myapp/my-prod1/demo/index.html
/myapp/my-qa1/demo/index.html


I would like to restrict access to the above prod1 URL for a specific set of IP's. How can I achieve this. Please tell.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sun 19 Jan '14 21:58    Post subject: Reply with quote

In the vhost allow just 192.168.100.1

Code:
Order Allow,Deny
Allow form 192.168.100.1
Deny from all
Back to top


Reply to topic   Topic: Restrict Access to a set of IP in a specific URL View previous topic :: View next topic
Post new topic   Forum Index -> Apache