[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: setting virtual hosts with apache



Eugene Sevinian wrote:
> <VirtualHost new_host.some_domain>
> ServerAdmin webmaster@box.am
> DocumentRoot /var/www/vhosts/radiovan/
> ServerName new_host.some_domain
> ErrorLog /var/log/apache/new-error.log
> TransferLog /var/log/apache/new-access.log
> </VirtualHost>
> 
> Is something wrong in this configuration?
> 
> The new_host also set in /etc/hosts as alias for original
> hostname.
> 

Try this one:

-----
NameVirtualHost 1.2.3.4		# IP number of the box

<VirtualHost 1.2.3.4>		
ServerName new_host.some_domain
..
</VirtualHost>

<VirtualHost 1.2.3.4>          
ServerName other_host.some_domain
..
</VirtualHost>
-----

This is supposed to work correctly... at least it does for me.


HTH,
 -Remco


Reply to: