configure apache to accept request form specific IP


 
Thread Tools Search this Thread
Special Forums Cybersecurity configure apache to accept request form specific IP
# 1  
Old 03-21-2011
configure apache to accept request form specific IP

Hi,

What should I change in the httpd.conf so that the apache will accept request from page from specific IP and deny all the rest IP.

I am reading the document of the apache but it is very long (700 pages) and I searched but I could not find something about this.
So if someone can explain me how to do this specific thing, I will be glad?

The direction that I think about is:
Code:
<Directory / >
Order allow,deny
Allow from IP1,IP2
</Directory>

while IP1 and IP2 are replaced with the IP numbers that I want to allow.
However I want to make sure it will reject all other IP request.


Thanks in advance.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Apache vhost - debug web request

Hello all, I have several vhost and not sure which vhost is serving the requests to my url http://www.mydomain.tld i have ssh access to the web server is there a way e.g curl to know exactly which vhost served the request. one of my friend suggested logs but i want to find another... (4 Replies)
Discussion started by: coolatt
4 Replies

2. Shell Programming and Scripting

Perl script to accept specific columns from excel

Hi All, I have below perl script which writes xml from .xls file. Now i want to add below two conditions in this script : 1. to check if the the input .xls file has ony two columns , if more tahn two columns then script should pop up an error. 2. If there are two columns , then first column... (4 Replies)
Discussion started by: omkar.jadhav
4 Replies

3. Solaris

Configure Solaris to accept Active Directory user logins

Is it possible to configure a Solaris server to authenticate users against an Active Directory server when logging in via ssh? I've seen some docs out there, I've followed their instructions, but it does not work. And I'm beginning to wonder if it is possible or even supported by Oracle. The... (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

4. Shell Programming and Scripting

Urgent request to consider:Search specific name in a file and fetch specific entries

Hi all, I have 2 files, One file contain data like this FHIT CS CHRM1 PDE3A PDE3B HSP90AA1 PTK2 HTR1A ESR1 PARP1 PLA2G1B These names are mentioned in the second file(Please see attached second file) as # Drug_Target_X_Gene_Name:(Where X can be any number (1-1000) (1 Reply)
Discussion started by: manigrover
1 Replies

5. Programming

Creating a web based id request form

Please pardon my ignorance, but I need to create a web-based form which can be used to request access to the unix servers in our environment. It just needs to have input fields for basic info (name, dept., etc.), and perhaps a drop-down box with the names of the servers. The form will be submitted... (2 Replies)
Discussion started by: wjssj
2 Replies

6. Web Development

Copy and forward apache http request

Hello, I am using apache 2.2 and I need to have certain http requests (those including example.com for instance) to be executed normally and forwarded to another server. With mod_rewrite, I could easily forward but then the input request would not be executed on my server. Right? Am I... (1 Reply)
Discussion started by: JCR
1 Replies

7. Web Development

Apache log with long strings of Xs in GET request

Hi everybody, I was looking at my apache2 log and I found GET requests as such: Some ip - - "GET... (4 Replies)
Discussion started by: z1dane
4 Replies

8. Solaris

Apache 2 configure not recognizing options

Hello all. I am trying to compile Apache 2 (again!) and the configure script keeps telling me it does not recognize the options. Everything I am including is in the --help list. For example: --enable-so. First I will put in the LD flags, then configure with the --enable-so option. ... (2 Replies)
Discussion started by: RobertSubnet
2 Replies

9. Linux

Configure apache prefork MPM

Hello, i want to know the basics to configure prefork.c module to high Apache performance and i think it's depends on the server hardware details (RAM and Processors) Thanks :) (0 Replies)
Discussion started by: LinuxCommandos
0 Replies

10. Shell Programming and Scripting

Shell program to accept multiple request at the same time

Hi, I got a script which sends the Email to the user based on certain variables received from Tivoli Server Monitoring 6.1. Now to keep track of the mails I have wrote a stored procedure in DB2 as we use DB2 UDB as back end which take the variables that were used to send the mail and store it... (3 Replies)
Discussion started by: tcskurra
3 Replies
Login or Register to Ask a Question
RunApp::Apache(3pm)					User Contributed Perl Documentation				       RunApp::Apache(3pm)

NAME
RunApp::Apache - Apache control for RunApp SYNOPSIS
use RunApp::Apache; $apache = RunApp::Apache->new (root => "/tmp/apache_run", report => 1, apxs => '/usr/local/sbin/apxs', # httpd => '/usr/local/sbin/httpd', required_modules => ["log_config", "alias", "perl", "mime"], config_block => q{ [% IF AP_VERSION == 2 %] eval { use Apache2 }; eval { use Apache::compat }; [% END %] <Location /myapp> AllowOverride None SetHandler perl-script PerlSetVar approot [% cwd %] PerlHandler MyApp Options +ExecCGI </Location> }); DESCRIPTION
This is the class for defining a apache web server to be used in RunApp. CONSTRUCTOR
new (%arg) Required arg: root The root for the apache instance. apxs httpd If "apxs" is specified, "httpd" will be derived from it. required_modules A arrayref to the apache modules required. config_block The config block that will be the extra block in the template used by RunApp::Template::Apache. CTL The class for handling apachectl. The default is RunApp::Control::AppControl. You can also use RunApp::Control::ApacheCtl. CONF The class for handling apache config. The default is RunApp::Template::Apache. It is used in the "build" phase of RunApp SEE ALSO
RunApp, RunApp::Control::Apache, RunApp::Template::Apache, App::Control AUTHORS
Chia-liang Kao <clkao@clkao.org> Refactored from works by Leon Brocard <acme@astray.com> and Tom Insam <tinsam@fotango.com>. COPYRIGHT
Copyright (C) 2002-5, Fotango Ltd. This module is free software; you can redistribute it or modify it under the same terms as Perl itself. perl v5.8.8 2008-01-09 RunApp::Apache(3pm)