how to set apache virtual hosts Host-Based Security?
hi, if not set as apache virtual hosts server, than just direct go to add the ip address or computer name in:
Order deny,allow Deny from 192.168.30.8 but when now i setup as a virtual hosts apache server than how to configure Host-Based security on virtual hosts, example: i have configure 3 virtual hosts, i want one of them deny from ip 192.168.30.8 Thank you. |
try this
just specify this inside the virtual host tags
example <virutalhost *:2000> DocumentRoot "/var/www/html/abc"</virutalhost><Directory> |
Just use correct order
Use this order
Order deny, allow Allow from [ip of your first virtual host] Allow from [ip of your second host]
Source Host based security in Apache |
All times are GMT -5. The time now is 08:06 PM. |