Aaron Gadberry

Help – v. helped, help·ing, helps

Was this site helpful?
My Amazon.com Wishlist

Archive for February, 2006

Changing Stylesheets Dynamically

22nd February 2006 - By Paradochs

Introduction

If you are one of those select few who have multiple stylesheets for their website, then this article is for you. On the other hand, whether you know CSS or not, this might be a good way for you to learn.
I know of 4 ways to change between styles dynamically in a page. They are listed below with some code examples.

Read the rest of this entry »

Posted in Programming | 1 Comment »

Using Plesk and vhost.conf

9th February 2006 - By Aaron Gadberry

Wondering how to create a good vhost.conf? Well you’ve come to the right place.

Plesk automatically updates httpd.include for each domain, making changes to this file only temporary. You don’t want to use this file if you need to make changes to Apache’s config on the fly, such as php’s open_basedir values per domain.

Instead you will want to use a vhost.conf file. This file will be placed inside your domain’s conf directory, usually found at /var/www/vhosts/yourdomain.com/conf. Create a file called vhost.conf in whatever editor you prefer. I use joe.

You can now put in any Apache configuration options like you would into httpd.include. In my case I wanted to do three things, give my site access to /php/includes, add a mod_rewrite rule, and tell Apache to follow symlinks.

Read the rest of this entry »

Posted in Computers, Server Management | 47 Comments »

How To: Blacklist an Email Address

7th February 2006 - By Aaron Gadberry

If you run a server with Spamassassin and you have one annoying person you need to block (blacklist) from your entire server, this article is for you. It’s a fairly simple process, but you will probably need root access to the server to complete the configuration changes.

You will need to edit the Spamassassin configuration file, typically found in the /etc/mail/spamassassin/ directory.

If you have joe installed you can edit it like so joe /etc/mail/spamassassin/local.cf.
Read the rest of this entry »

Posted in Computers, Server Management | 1 Comment »