Solved

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

Posted on 2009-07-12
7
199 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
ID: 24836862
Instead of "10.10.*.*" try just "10.10".
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24836866
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
ID: 24836883
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 6

Author Comment

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

thanks
0
 
LVL 6

Author Comment

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

thanks a lot
viola
0
 
LVL 6

Author Comment

by:viola123
ID: 24837082
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
ID: 24837392
Kravimir:
it works very well.

thanks a lot
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

821 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