io comunque non voglio che apache sia visibile dal web.
questo dipende dalla tua rete, da come esci e se viene fatto un NAT sulla porta 80 del server web, oppure se addirittura il server web ha un indirizzo ip statico pubblico riservato, eventualmente come ti ha già detto boromir basta chiudere la porta 80 sul firewall!
come ulteriore controllo puoi modificare httpd.conf nel seguente modo:
codice:
<Directory "/path_to/documentroot">
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
deny from all
allow from 127.0.0.1
</Directory>
quello in grassetto è quello che devi aggiungere, significa nega l'accesso a tutti tranne che a localhost