Tag Archives: apache

Hiding Apache2 header info

Add these to your /etc/apache2/apache2.conf then restart Apache:

Posted in Tech Notes | Tagged , , | Leave a comment

Enabling chrooted sftp access for WordPress automatic upgrades

Create wordpress user specifically for the auto update and add the user to the www-data group: sudo adduser wordpress sudo adduser wordpress www-data chgroup the wordpress dir to the www-data group: sudo chgrp -R www-data /var/www/wordpress Add the following to … Continue reading

Posted in Tech Notes | Tagged , , | Leave a comment

Enabling SSL for Apache2 on Ubuntu

Edit /etc/apache2/apache2.conf - add:

Generate SSL certificates:

Add SSL config and 443 port to a new Virtual Host in apache2.conf – for example:

Add a listen port on 443 to /etc/apache2/ports.conf:

Posted in Tech Notes | Tagged , , , | Leave a comment

Enabling mod_rewrite on Apache

To enable the mod_rewrite module:

To enable for  specific <Directory> entry:

To specify a rewrite pattern:

Posted in Tech Notes | Tagged , | Leave a comment