A Peladen Web (Web server) can be used to serve more than one Realm (Domain) or Sub Domains (Sub Domain), as configured in the Domain Naming System Peladen (DNS), the next stay and configure VirtualHost directive in the Web Peladen, in this case configure the httpd.conf
Okay, this example is CentOS 5.5 on a server, then stay just edit the httpd.conf configuration file located at: /etc/httpd/conf/httpd.conf and add the following line to the bottom line of the file:
Okay, this example is CentOS 5.5 on a server, then stay just edit the httpd.conf configuration file located at: /etc/httpd/conf/httpd.conf and add the following line to the bottom line of the file:
NameVirtualHost ip-server-web:80
DocumentRoot "/web/document/location"
ServerAdmin andri@ranah.web.id
ServerName nama.ranah.web.id
allow from all
Options +Indexes
DocumentRoot "/web/document/location" ServerAdmin andri@ranah.web.id ServerName namadomain.com allow from all Options +IndexesAfter that, its just restart httpd, /etc/init.d/httpd restart and vhosts is ready to use.
Hopefully Helpful;-)