Which settings should you use in `/etc/apache2/enabled-sites/000-default to make content only executable and readable for the user in the given folder?
I have the following /etc/apache2/sites-enabled/000-default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
// I put here /var/www/codes unsuccessfully
// I get this error when restarting Apache
// waiting apache2: Could not reliably determine
// the server's fully qualified domain name,
// using 127.0.1.1 for ServerName
--- cut ----
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order deny,allow
allow from all // not sure about this
</Directory>
--- cut ---
My permissions at /var/www/codes
4 drwxr-sr-x 3 root www 4096 2009-08-21 00:16 forms
4 drwxr-sr-x 7 root www 4096 2009-08-21 00:16 handlers
8 -rw-r--r-- 1 root www 5403 2009-08-22 00:43 index.php
/usr/lib/cgi-bin
, that script could allow malware on to the system, but that's not Apache's fault. The configuration as you have it is basically fine. (2) It is safe to share your IP address on ServerFault (unless you do not want anyone accessing your server). An IP address is not some sort of secret information that allows hackers special access; it's a basic identifier that anyone who will ever visit your site must have.