Using Ubuntu 9.10 and Apache 2.2.12.
So... I wanted to make my Apache server available only to localhost and I found this thread:
http://www.linuxquestions.org/questi...server-651883/
I prefer to do this using the second reply (define access rule for Apache) instead of the other option (define rule for the firewall).
So I found the "Listen 80" line on /etc/apache2/ports.conf (not on apache2.conf).
But I also found "NameVirtualHost 80".
Hence, currently my ports.conf file contains this:
Code:
NameVirtualHost 127.0.0.1:80
Listen 127.0.0.1:80
I've checked I can correctly access the server from the same machine it's installed in and will test if it refuses to serve a different machine tomorrow.
But in the meantime, as what I did is not exactly what was advised (in other places too) and maybe that was intended for Apache 2.0 and 2.2 seems to have implemented something new, the Virtual Host names (for what I gather from the comments on the ports.conf file)... is what i did (assuming my test tomorrow goes well) ok or am I messing with what I shouldn't be messing - do note I know basically nothing on this subject.
Thanks in advance.
