Securing Your Linux Web Server Folder Access By IP
Page 1 of 1
Securing Your Linux Web Server Folder Access By IP
- Code:
sudo gedit /etc/apache2/apache2.conf
Locate directory section (for example/var/www/sub/payroll) and set it as follows:
- Code:
<Directory /var/www/html/payroll/>
AllowOverride None
Order deny,allow
Deny from all
Allow from 192.168.0.5
Allow from 127.0.1.1
Allow from 127.0.0.1
</Directory>
Another Example
- Code:
<Directory /var/www/html/phpmyadmin/>
AllowOverride None
Order deny,allow
Deny from all
Allow from 192.168.1.10
Allow from 127.0.1.1
Allow from 127.0.0.1
</Directory>
Now Restart Apache Server
- Code:
sudo service apache2 restart
Similar topics
» Securing Your Linux Web Server PHPMYADMIN Database Login
» Linux Record Desktop Function & Serve Current Folder Via Python Web Server
» Using web server access logs and auto lookup ip to location
» ht access file for appending & prepending files to apache2 web server
» Watch A Folder For Changes With Bash On Linux
» Linux Record Desktop Function & Serve Current Folder Via Python Web Server
» Using web server access logs and auto lookup ip to location
» ht access file for appending & prepending files to apache2 web server
» Watch A Folder For Changes With Bash On Linux
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|