Pages

Configuration of Apache Web Server with virtual hosting

1) Install given necessary packages.
I-apache2-2.0.XXX.rpm
II-apache2-example-page-2.0.XXX.rpm
III-apache2-prefork-2.0.XXX.rpm
IV-apache2-mod-perl-2.0.XXX.rpm (for perl scripting support)
V-apache2-mod_php4-4.3XXX.rpm (for php pages support)
2 ) If you want to host only one site then this so easy. Place your website in /srv/www/htodocs/ folder.

3) Start the apache2 service.
/etc/init.d/apache2 start or rcapache2 start

4) For webhosting your DNS must be work properly and domain must be resolved.

5) For virtual hosting go to /etc/apache2/vhosts.d and copy “vhost.template” to appropriate name of your website. Like www.pucit.edu.pk.conf www.pucitonline.net.conf and so on.


ServerAdmin webmaster@www.pucitonline.net
ServerName www.pucitonline.net

DocumentRoot /home/pucitonline

ErrorLog /var/log/apache2/www.pucitonline.net-error_log
CustomLog /var/log/apache2/www.pucitonline.net-access_log combined







And same changes in all website files.

6) uncomment anyone of these NameVirtualHost 12.34.56.78:80 or
NameVirtualHost *:80 in /etc/apache2/listen.conf

7) start/restart apach2 service through this way.
/etc/init.d/apache2 or rcapache2 start/restart

Forex Trading