February 22nd, 2012 |
admin |
Apache has public_html directory support. With this you specify the name of the directory which is appended onto a user’s home directory if a ~user request is received. For example http://domain.com/~rocky/file.html will be rocky’s home directory /home/rocky/public_html/file.html. Recently I took small part time job to setup web server for university. I want to give every [...]
January 20th, 2012 |
admin |
LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a CentOS 5.5 server with PHP5 support (mod_php) and MySQL support. I do not issue any guarantee that this will work for you! 1 Preliminary Note In this tutorial I use the hostname server1.example.com with [...]
January 18th, 2012 |
admin |
ou can redirect browser to use SSL secure port using .htaccess file with Rewrite Rules. Create a .htaccess file with the below Rewrite rule. Options +FollowSymLinks RewriteEngine On RewriteCond %{SERVER_PORT} !=443 RewriteRule ^ https://secure.yourdomain.com%{REQUEST_URI} [NS,R,L] Incoming search terms:centos cpanel htaccess (3)where to create htaccess file for directadmin (1)
January 15th, 2012 |
admin |
Here are some basic steps to secure Apache Web Server IMPORTANT NOTE: These suggestions may vary from server to server and modify the values as per your server configurations. It is up to you to determine if any of the changes suggested here are not compatible with your requirements. 1. Hide the Apache Version number, [...]
January 9th, 2012 |
admin |
mod_slotlimit is an Apache module that using dynamic slot allocation algorithm and static rules, can manage resources used for each running site. 1. Installation In order to compile mod_slotlimit, you will need to have apxs2 (APache eXtension tool) installed and configured with Apache. The follow command will install it: apt-get install apache2-prefork-dev Now we [...]
January 4th, 2012 |
admin |
Mapping john.webserver.com to http://www.webserver.com/user.php?name=john is just by changing a few parameters in http.conf file In httpd.conf file, <VirtualHost se.rv.er.ip.ad.re.ss> ServerAdmin info@servername.com DocumentRoot /var/www ErrorLog /var/log/apache/apache-error.log TransferLog /var/log/apache/apache.log ServerName www.servername.com ServerAlias *.servername.com RewriteEngine on RewriteCond %{HTTP_HOST} !^www.* [NC] RewriteCond %{HTTP_HOST} ^([^\.]+)\.servername\.com RewriteRule ^/$ http://www.servername.com/user.php?user=%1 </VirtualHost> The lines for this feature, RewriteEngine on activating rewrite option RewriteCond [...]
January 3rd, 2012 |
admin |
Most webframeworks will provide you with a .htaccess file that contains RewriteRule’s to be used in Apache to create “clean URLs”, or “routes” as it’s called in Zend Framework. The problems is that it doesn’t work for Nginx as it doesn’t read .htaccess file and wouldn’t understand the syntax anyway. So, here’s a basic example [...]
January 3rd, 2012 |
admin |
If you’re running Apache with the mod_fcgid module to let your PHP scripts be handled in a seperate module, you can run into this annoying little bug in the mod_fcgid 2.2.x implementations. The problem: mod_fcgid: read data timeout in xx seconds First, check if you have the mod_fcgid module that is causing these problems. # [...]
January 2nd, 2012 |
admin |
It is usually a good practice to install the Apache httpd as the service on the linux server so that it can be added to system startup and does not require any intervention from user to start the Apache httpd server manually on every reboot. Linux servers like (CentOS, RHEL, etc) requires to place the [...]
January 2nd, 2012 |
admin |
The Apache + mod_php combination has been ideal choice for most of peoples for their LAMP webserver. Easy to install and works most of the time make it favorite among the users. However, this setup is quite performance intensive and has some drawbacks which can be seen when the site grows in terms of users. [...]