This is for Ubuntu Server 12.04 64-bit. The easiest way to activate Apache’s SSL is: That’s all for the setup, now for installing the certificates. I am using certificates from StartSSL, so your installation may be slightly different. Copy the unencrpyted SSL private key to /etc/ssl/private, chown it www-data:www-data, chmod it 700. Find the line …
Tag Archive: Apache
Permanent link to this article: http://mikebeach.org/2013/04/23/enabling-apache-ssl-and-installing-own-certificates/
Redirect non-www to www (and vice-versa) via htaccess
This is probably old news for a lot of folks, but it’s handy nonetheless and I often have to look up these .htaccess strings. Note that Apache mod_rewrite is required for any of this to work. This (and it’s comments) are based on the Drupal default .htaccess file [License as of 9/30/11: GPL], because the Drupal …
Permanent link to this article: http://mikebeach.org/2011/09/30/redirect-non-www-to-www-and-vice-versa-via-htaccess/
Ubuntu, Apache, VirtualHosts, and SSL – part 2
In my first post about Ubuntu, Apache, VirtualHosts, and SSL I covered generating self-signed certificates and implementing them for Apache VirtualHosts. What I didn’t cover was — if you implemented this without a correct base configuration — you’d end up with some unexpected results if you tried to visit your base domain over SSL. It’s …
Permanent link to this article: http://mikebeach.org/2011/05/18/ubuntu-apache-virtualhosts-and-ssl-part-2/
Forcing SSL for phpMyAdmin
After configuring WordPress to force SSL in the administration area, I was in phpMyAdmin and realized that it’s also not configured to do the same by default. From the phpMyAdmin Wiki, add the following line at the end of your /etc/phpmyadmin/config.inc.php file $cfg['ForceSSL'] = TRUE; This will cause sessions to force SSL. If you’re having …
Permanent link to this article: http://mikebeach.org/2011/05/16/forcing-ssl-for-phpmyadmin/
Forcing the WordPress administration over SSL
From the WordPress administration over SSL guide, add the following directive to your wp-config.php file: define(‘FORCE_SSL_ADMIN’, true); This will cause logins and admin pages to force SSL sessions. If you’re having issues making this work for you, check out my article involving Apache and SSL. Questions, comments, and feedback are welcome.
Permanent link to this article: http://mikebeach.org/2011/05/14/forcing-the-wordpress-administration-over-ssl/
Ubuntu, Apache, VirtualHosts, and SSL
The goal of this guide is to provide you with an Apache SSL configuration with a unique self-signed certificate for each VirtualHost. These self-signed certificates are not intended for e-commerce or public-facing web sites. Rather, they are intended for SSL encryption of administration areas on personal websites or administration programs that have HTTP interfaces. Of …
Permanent link to this article: http://mikebeach.org/2011/05/04/ubuntu-apache-virtualhosts-and-ssl/
Redirect or deny site visitors based on IP using .htaccess
As a webmaster, there may be times when you want to deny one or more IP addresses or ranges from accessing your website. Be it comment spammers, page scrapers, or various other reasons. For that, you’re welcome to adopt the following code snippets. If you’ve found them helpful, or have something to share, please do …
Permanent link to this article: http://mikebeach.org/2011/04/17/redirect-or-deny-site-visitors-based-on-ip-using-htaccess/
WordPress, suPHP, and Ubuntu Server 10.04
If you have WordPress running under an unprivileged user account, you may have noticed that when trying to install or delete a plugin that it prompts you for FTP information. This is due to a rather unintuitive way that WordPress checks for file access: The following code is from the get_filesystem_method() method in the wp-admin/includes/file.php …
Permanent link to this article: http://mikebeach.org/2011/03/20/wordpress-suphp-and-ubuntu-server-10-04/




Recent Comments