Showing posts with label Apache. Show all posts
Showing posts with label Apache. Show all posts

Saturday, 11 January 2014

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

echo ServerName $HOSTNAME > /etc/apache2/conf.d/fqdn

Friday, 6 January 2012

Apache: change default port 80 into 8080

Edit /etc/apache2/ports.conf and change:
Listen 80
into:
Listen 8080
And restart apache:
$ sudo service apache2 restart

Friday, 29 April 2011

Apache: enable/disable directory browsing (file listing)


disable file listing
assume we want to disable file listing in /var/www (i.e. all directories)
$ sudo cat /var/www/.htaccess
# disable directory listing
Options -Indexes