Archive for August, 2010

Specifying the nameserver’s DNS role in WHM

We need to specify which server is to function as a standalone server — that is, a server that only receives DNS data from the other servers in the cluster.

You do not need to link dedicated nameservers to each other.

Under Dns Role, select Standalone next to each web server’s hostname and IP. This will allow the nameserver to receive information from the web server, but not send data to it.

Setting a nameserver to synchronize data to a web server is not recommended, as it will create extraneous zones on the web server.

In most cases, a DNS-only server should never be set to synchronize to a Web server. The Web server should always be set to synchronize to the DNS ONLY server(s), and the DNS ONLY server(s) should always be set as standalone.

Disable Script Execution Using .htaccess

You can disable scripts being run in the directory of your choice by adding the following code to your .htaccess file in that directory

This would be particularly useful if you allow visitors to upload files to your server, but want to be sure that any potentially harmful files they upload are not allowed to execute.

AddHandler cgi-script .php .pl .jsp .asp .sh .cgi
Options -ExecCGI

You can replace the file types in the example with the file types you wish to disallow using .htaccess.

How to disable serversignature using .htaccess

To disable the server’s signature used to identify the server, use the following code in your .htaccess file:

ServerSignature Off

« Prev