HostOnNet Blog

Category Archives: Apache

Apache Directory Listing

To enable Directory Listing in Apache, add following to .htaccess file. if you want to do this in httpd.conf file, in your virtual host entry, add something like

Enable htaccess in Apache

To verify mod_rewrite is enabled in your Apache server, run On CentOS On Debian/Ubuntu If the command shows “rewrite_module”, you have rewrite module enabled on your Apache server. On CentOS servers, rewrite module is enabled by default. On Ubuntu/Debian, you

Redirect OLD domain to NEW using .htaccess

When you move your web site form one domain to another, you need to redirect all visitors on your old domain to new one to avoid lose of traffic. Google recommend using 301 redirect when you change URL of a

Blocking Traffic With Apache GeoIP Module

To install GeoIP module in CentOS Apache server, run Now verify mod_geoip installed in apache by running Example [root@3blogger ~]# httpd -M | grep geoip geoip_module (shared) [root@3blogger ~]# Now edit /etc/httpd/conf/httpd.conf add following In your Apache VirtualHost, add This

Managing users with Apache htpasswd

htpasswd is used to create and update the flat-files used to store usernames and password for basic authentication of HTTP users. On Ubuntu server, you can install htpasswd with command To create a password file and add user, run In

Configuring SSL site in Ubuntu Server

Create file Add following content Enable the web site Enable Apache SSL module if not already enabled Restart Apache You can verify SSL module enabled by running Now web site will work with SSL certificate.

Apache Optimization

Configuring SSL site in Ubuntu Server Enable SSL in Apache VirtualHost php-fpm Blocking Traffic With Apache GeoIP Module CentOS 7 Apache Error AH01630: client denied by server configuration Enable htaccess (Rewrite Module) in Apache Apache Configuration Apache Directory Listing Apache

Windows could not start the Apache2 on Local Computer

Some of the local sites on my pc is not working. When i tried to access, its showing like Unable to connect Firefox can’t establish a connection to the server at The site could be temporarily unavailable or too

Redirect to

By default most sites allow and It is better to select one of the url you want and stay with it instead of using both URLs for same web site. It is better to use URL with www

Htaccess Tips and Tricks

Redirect web site to SSL using .htaccess Redirect OLD domain to New using .htaccess Redirect to Disable PHP Execution in WordPress Uploads Folder Redirect users to Mobile Version or Desktop Version of Websites Based on Device using Apache