how to setup virtual hosts on rhelas4?
I have been trying and i have not been able to do so...I have 1 ip, and i have been able to setup more then one domain on my windows server, but i want to migrate to linux, this is a new install of it, i setup the name
here is the part with virtual hosts:
NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
<VirtualHost *>
ServerName localhost
ServerAdmin admin@localhost
DocumentRoot /var/www/html/
ErrorLog logs/error.log
CustomLog logs/access.log common
</VirtualHost>
<VirtualHost *>
ServerName myhosting.com
ServerAdmin webmaster@myhosting.com
DocumentRoot /home/site01/
ErrorLog logs/myhosting.com-error.log
CustomLog logs/myhosting.com-access.log common
</VirtualHost>
<VirtualHost *>
ServerName forum.com
ServerAdmin webmaster@forum.com
DocumentRoot /home/site02/
ErrorLog logs/forum.com-error.log
CustomLog logs/forum.com-access.log common
</VirtualHost>
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
<VirtualHost *>
ServerName localhost
ServerAdmin admin@localhost
DocumentRoot /var/www/html/
ErrorLog logs/error.log
CustomLog logs/access.log common
</VirtualHost>
<VirtualHost *>
ServerName myhosting.com
ServerAdmin webmaster@myhosting.com
DocumentRoot /home/site01/
ErrorLog logs/myhosting.com-error.log
CustomLog logs/myhosting.com-access.log common
</VirtualHost>
<VirtualHost *>
ServerName forum.com
ServerAdmin webmaster@forum.com
DocumentRoot /home/site02/
ErrorLog logs/forum.com-error.log
CustomLog logs/forum.com-access.log common
</VirtualHost>