echo ServerName $HOSTNAME > /etc/apache2/conf.d/fqdn
Showing posts with label Apache. Show all posts
Showing posts with label Apache. Show all posts
Saturday, 11 January 2014
Friday, 6 January 2012
Apache: change default port 80 into 8080
Edit /etc/apache2/ports.conf and change:
Listen 80into:
Listen 8080And restart apache:
$ sudo service apache2 restart
Labels:
Apache
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
Subscribe to:
Posts (Atom)