Forgetting your password can be tiresome, especially if you’re the (only) administrator. Owncloud allows you to reset your password via the user-supplied email address, but this does of course only work if you have an email associated with your account. Furthermore, the system needs to have a mail server configured. Perhaps you don’t, because of […]
Monthly Archives: September 2013
Configure SSH to Use Keyfiles Automatically
If you have multiple SSH-keys, perhaps a different one to each server, this can make your life a lot easier. Less typing is better. Or perhaps you are configuring a remote git repository, or access through some other software. Go ahead and nano ~/.ssh/config And add Host example.com IdentityFile ~.ssh/yourkey Change the domain and filename […]
Stop Apache2 from listening on port 80
I assume you have enabled SSL so the site is accessible via HTTPS. Assuming you haven’t changed the configuration, go ahead and type unlink /etc/apache2/sites-enabled/000-default This would remove the symlink named 000-default, which points to the default vhost found in sites-available. If you have altered the config, make sure to remove any vhost listening on […]
Enable HTTPS on Apache2
This would be a quick way to enable HTTPS (SSL) on Apache2. cd /etc/apache2/sites-enabled ln -s 001-ssl ../sites-available/default-ssl nano 001-ssl Make sure that the vhost configuration is valid. By default it is configured to /var/www. You might want to have some other directory as your document root. Then run a2enmod ssl service apache2 restart Do […]