[CentOS] OT - httpd/conf.d include questions - allowing only some addresses
Always Learning
centos at u62.u22.netTue Oct 7 16:01:48 UTC 2014
- Previous message: [CentOS] OT - httpd/conf.d include questions - allowing only some addresses
- Next message: [CentOS] OT - httpd/conf.d include questions - allowing only some addresses
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 2014-10-07 at 09:47 -0400, Robert Moskowitz wrote: > <Directory "/var/www/html"> > Options Indexes FollowSymLinks > AllowOverride None > Order deny,allow > allow from 192.84.67.128/255.255.255.0 > deny from all > </Directory> If you want to allow web site access from only 192.84.67.128/255.255.255.0 then do it in your firewall. The IPtables (ip4) commands would be something like this:- iptables -I {table name} {table position or line number} -p tcp --dport 80 -s 192.84.67.128/24 -j ACCEPT iptables -I {table name} {table position AFTER previous line} -p tcp --dport 80 -j DROP -- Regards, Paul. England, EU.
- Previous message: [CentOS] OT - httpd/conf.d include questions - allowing only some addresses
- Next message: [CentOS] OT - httpd/conf.d include questions - allowing only some addresses
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list