Tuesday, January 18, 2011

Apache Web Server tips

 Web Server(Apache):
 
The following file to be Configure:
Filename
Function
/etc/htpd/conf/httpd.conf
Setting up the virtual hosts entry
/var/named/
Setting up the Zone file
/etc/named.conf
Mapping the zone file.
 
Create virtual host entry in the apache configuration
Sample Eg:
# Virtual host for Baskar.com
<VirtualHost 172.21.1.205>
        DocumentRoot /var/www/html
        ServerAdmin admin@baskar.com
        ServerName baskar.com
        ServerAlias www.baskar.com
        DirectoryIndex home.php index.html index.php index.htm index.shtml
        <Directory "/var/www/html/">
                AllowOverride none
        </Directory>
</VirtualHost>

1 comment: