Hosting

Using Subdomains With Localhost

I do a lot of development work locally, running apache2, mysql, postgres, and any number of other things on my personal computer so that I can do my work. This offers me a lot of benefits: it's faster, it doesn't rely on an Internet connection, and it allows me to have complete control over my environment. There are some drawbacks to this though. Generally, you end up with many different projects and with each one comes a new directory, so after a while you have dozens of sites that look like http://localhost/somesitehere/. This by itself can cause some issues. First of all, now none of your files are running directly off of the document root which often causes some issues with badly written software. Secondly, it confuses the hell out of firefox's password manager because it's host based. It also looks kind of ugly having to put in all those different ...

0 Comment   |   Posted in Hosting,blog March 12, 2010

IP Based Firewall with cPanel

CPanel/WHM Based Systems If you are using a web server from a web hosting company, chances are the CPanel/WHM is the system admin interface you use to manage your server. The current revision of CPanel/WHM (Mar 5th, 2008) appears to rely on the host access file as a method of preventing access to the system. Access to iptables or ipchains rules is not readily apparent, however it is possible that we have overlooked these options. Blocking An IP Range The steps below will help you research who is connecting to your box and how to block them from gaining access to your system through software based IP blocking. Real World Example This implementation is based on our experiences after turning on the Logwatch utility on our web server. The logwatch report for PAM shows sshd authentication failures. From our most recent report: --------------------- pam_unix Begin ------------------------ sshd: Authentication Failures: ...

0 Comment   |   Posted in Hosting,Security,System Administration,blog March 05, 2008