Apache configuration
http://library.linode.com/web-servers/apache/installation/fedora-14 http://library.linode.com/lamp-guides/fedora-14#sph_configure-name-based-virtual-hosts First check the syntax of your httpd.conf with apachectl configtest and then restart with apachectl graceful
configure VirtualHost
http://library.linode.com/lamp-guides/fedora-14#sph_configure-name-based-virtual-hostshttp://www.geeksengine.com/article/apache-multiple-local-websites.html
# mkdir stable beta beta1
# vim /etc/httpd/conf.d/vhost.conf
<VirtualHost 127.0.0.1>
ServerAdmin webmaster@puglieseweb.com
ServerName stable
# ServerAlias www.stable.com
DocumentRoot /home/pweb/development/prjs/websites/puglieseweb.com/stable/
Resources:
html
ErrorLog /home/pweb/development/prjs/websites/puglieseweb.com/logs/stable_error.log
CustomLog /home/pweb/development/prjs/websites/puglieseweb.com/logs/stable_access.log combined
</VirtualHost>
<VirtualHost 127.0.0.2>
ServerAdmin webmaster@puglieseweb.com
ServerName beta
# ServerAlias www.beta.com
DocumentRoot /home/pweb/development/prjs/websites/puglieseweb.com/beta
ErrorLog /home/pweb/development/prjs/websites/puglieseweb.com/logs/beta_error.log
CustomLog /home/pweb/development/prjs/websites/puglieseweb.com/logs/beta_access.log combined
</VirtualHost>
<VirtualHost 127.0.0.3>
ServerAdmin webmaster@beta1
ServerName beta1
# ServerAlias www.beta.com
DocumentRoot /home/pweb/development/prjs/websites/puglieseweb.com/beta1
ErrorLog /home/pweb/development/prjs/websites/puglieseweb.com/logs/beta1_error.log
CustomLog /home/pweb/development/prjs/websites/puglieseweb.com/logs/beta1_access.log combined
</VirtualHost>
# vim /etc/hosts
127.0.0.1 localhost.localdomain localhost stable
::1 localhost6.localdomain6 localhost6
127.0.0.2 beta
127.0.0.3 beta1
# service httpd restart