Tag Archives: server

Comprehensive guide to Windows Server ADS setup

The Active Directory Services (ADS/AD) is a Windows domain controlled directory service, which allows the administrators of the network to centralized operation. It can be implemented in both large scale and small scale networks. The fundamental architecture of the ADS is the Lightweight Directory Access Protocol (LADP). While most of the following will be same, if not similar, in almost all Windows server OS versions, this article is written Continue reading Comprehensive guide to Windows Server ADS setup

How to upgrade or replace RAM on your computer

For an average user who knows nothing about electronics technology, a simple RAM (Random Access Memory) upgrade can be a complicated task. The reality is even for a tech savvy person like myself find it difficult to find spare RAM modules and specific instructions for installation.

Key points…

  • Do you have physical access to the memory? (some laptops, the RAM is under the keyboard and only a qualified technician can install/replace RAM)
  • What is the type of RAM your desktop/laptop can take? (DDR2, DDR3, DDR4, etc)
  • What is the memory frequency? (1333 MHz, 1600 MHz, 1066 MHz, 800 MHz, etc)
  • The type of support for the RAM? (ECC, DIMM, un-buffered, un/registered etc)
  • What is the maximum amount of RAM allowed by Continue reading How to upgrade or replace RAM on your computer

Restrict Access to Addon Domains

I run several websites on a single hosting plan. While some web developers do this to save money, I did this to save time. When you have all your hosted sites under one cPanel account(or in the same HTTP folder), it is easy to manage them. One problem you need to resolve is that add-on domain databases can be access through the primary domain. It can be fixed by adding a code to our good old .htaccess file in the sub-domain directory that host the files for the primary domain. The .htaccess file in each and every directory of the site must be edited(not the admin folders of CMSes) to include this code.

Make sure you add this code at the very top of the .htaccess file.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?primarydomain.com$ [NC]
RewriteCond %{REQUEST_URI} ^/addonfolder/(.*)$
RewriteRule ^(.*)$ - [L,R=404]

This will redirect the users to a 404 page on your main site… However, if you just want everything redirected from one place, you can edit the root directory of the primary site and use the following code for multiple add-ons;
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ [NC]
RewriteCond %{REQUEST_URI} ^/addon1/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/addon2/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/addon3/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/addon4/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/addon5/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/addon6/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/addon7/(.*)$
RewriteRule ^(.*)$ - [L,R=404]

If you add the code in the primary domain’s root .htaccess file, the code will not provide a 404 error page on your main website, but it will redirect the users to the sub-domain site.

HTTP Status Code Definitions Explained

I ran in to into Error 500 issue about a week ago as soon as I tried to edit the .htaccess file on the server. I was blindsided because I had no clue what Error 500 stand for and the hosting service support team was useless because they told me that my name servers are out of order. After 24 hours wait time for DNS propagation, the site was still off line. So I decided to do my own little investigation. What I found was that Error 500 is caused by a programming error I made on the .htaccess file! I went to Continue reading HTTP Status Code Definitions Explained