How can I make it that my local Apache installation works only as http://localhost/ and never from outside like using the IP of my machine when connected to a network please?
|
Could try: |
|||||||||||||||||
|
|
Change your current "Listen" line to "Listen 127.0.0.1:80" http://httpd.apache.org/docs/current/mod/mpm_common.html#listen |
|||||||
|
|
The easiest way would be to block ports 80 and 443 in the firewall for the machine that is hosting Apache. This would make external requests get blocked at the firewall. |
|||||||||||
|
|
Some of this is borrowed from httpd.apache.org/docs/2.2/misc/security_tips.htm. Add the following to httpd.conf :
|
|||
|
|