Monday, May 25, 2009

Hosting Multiple website in apache(Fedora)

1. vim /etc/httpd/conf/httpd.conf
2. Go to last line Virtual host area and mention this line

:80>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /var/www/html/www.rakesh.com
ServerName www.rakesh.com
ErrorLog logs/www.rakesh.com-error_log
CustomLog logs/www.rakesh.com-access_log common
#

:80>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /var/www/html/www.vijay.com
ServerName www.vijay.com
ErrorLog logs/www.vijay.com-error_log
CustomLog logs/www.vijay.com-access_log common



3. Now open vim /etc/hosts
192.168.2.1 www.rakesh.com
192.168.2.1 www.vijay.com

Done :)

1 comment:

Multilingual websites said...

In SEO many technique are available but most important is content and powerful link to improving website position.


Multilingual websites

curl and cacert

curl -v --cacert cacert.pem https://www.example/cgi-bin/f ile.xgi -I -X POST