Solved

how to set the ip address in apache web serve config file?

Posted on 2009-07-12
7
195 Views
Last Modified: 2012-05-07
Hi all,
we are try to use ip address to control who can access our web page. i want to set ip address in apache httpd.conf file. but  i found i have to put fixed ip address to that file. otherwise it does not work.
if we don't have fixed ip address for everyone, what i should do?
i tried to put ip address like: 10.10.*.* OR proxy server ip address, but they are not working.

do you have any idea? or i don't have to use ip address to control the access?

thanks a lot
viola
in httpd.conf file:

----------config ip address part----------

#

# Control access to business partner pages

#

<Location /private/partner>

  Order Deny,Allow

  Deny from all
 

  # yyy proxy server

  Allow from xxx.xx.xxx.xxx
 

  # employee A

  Allow from xxx.xx.xxx.xxx
 

  # employee B

  Allow from xxx.xxx.xxx.xxx

</Location>

Open in new window

0
Comment
Question by:viola123
  • 4
  • 2
7 Comments
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
Comment Utility
Instead of "10.10.*.*" try just "10.10".
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
Comment Utility
Hi,

Just change the order as:

Order Allow,Deny

Then remove "Deny from al"

It should work like that. Don't forget to restart your web server after you've saved the file.

Cheers,
K.


0
 
LVL 30

Expert Comment

by:Kerem ERSOY
Comment Utility
BTW I dont see any index page setting to your /private/partner directory. Is it becasue you've copied only the address matching part here ?
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 6

Author Comment

by:viola123
Comment Utility
KeremE:
yes, you are right, i only copied the address matching to here.

thanks
0
 
LVL 6

Author Comment

by:viola123
Comment Utility
hi all,
i will test the solutions and let you know the results.

thanks a lot
viola
0
 
LVL 6

Author Comment

by:viola123
Comment Utility
KeremE:
if i change the order like what you suggested, what ip address i should put there, eg. proxy server address? or like 10.10.*.* ?

thanks
#

# Control access to business partner pages

#

<Location /private/partner>

  Order Allow, Deny
 

 

  # yyy proxy server

  Allow from xxx.xx.xxx.xxx

 

  # employee A

  Allow from xxx.xx.xxx.xxx

 

  # employee B

  Allow from xxx.xxx.xxx.xxx

</Location>

Open in new window

0
 
LVL 6

Author Comment

by:viola123
Comment Utility
Kravimir:
it works very well.

thanks a lot
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now