Server

How to configure apache virtual host in Microsoft Windows for safer development

Typically for web development, one likes to simulate the web environment by using actual domain name as is instead of using some local IP address. It is very useful in case if you want to host WordPress and would like to copy your version of database as is from development server to the the actual hosting server. The applications like WordPress store domain names in the database while storing your posts as part of permalinks etc.

Another use for having real simulated environment is to ensure your ad slots like Google AdSense, DoubleClick etc appear without any issues. Otherwise the ads More >

How to disable directory listing by Apache web server

There are two ways to disable directory browsing feature of Apache web server. However the first method is most practical way as server’s configuration file is typically not modifiable by the user as part of his hosting plan. Most of the hosting provides allow modification of .htaccess file and enable ModRewrite module in the Apache.

The ModRewrite Way

Add the following line towards the end of .htaccess file present in a directory for which you would like to disable directory listing.

Options All -Indexes

However if you have lots of such directories, it may become difficult for you to do this.

The httpd.conf way

If you More >