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

Re: webserver using name based virtual hosts, make problem

Bernd Eckenfels wrote:

your apache config does not contain named virtual hosts, so your problem is
in the fact that the ip for:

ServerName  www.linuxspice.com

is not


So this means if you specify http://www.linuxspice.com/case.jpg it will not be the
same as, unless you are on a host which has set up this
wrong name mapping, because it is

so if I want that <img src="http://www.linuxspice.com/case.jpg";>
showed photo in finitesite.com/fsshl

I need to modify my httpd.conf

# VirtualHost: Allows the daemon to respond to requests for more than one
# server address, if your server machine is configured to accept IP packets
# for multiple addresses. This can be accomplished with the ifconfig
# alias flag, or through kernel patches like VIF.

# Any httpd.conf or srm.conf directive may go into a VirtualHost command.
# See also the BindAddress entry.

#<VirtualHost host.some_domain.com>
#ServerAdmin webmaster@host.some_domain.com
#DocumentRoot /var/www/host.some_domain.com
#ServerName host.some_domain.com
#ErrorLog /var/log/apache/host.some_domain.com-error.log
#TransferLog /var/log/apache/host.some_domain.com-access.log
is this part need to be modify?

if so, should I do this?
<VirtualHost www.linuxspice.com
DocumentRoot /var/www/
ServerNmae www.linuxspice.com

that is in the last part of my httpd.conf

please help again, thanks in advance

Sincere Eric
linux pc for sale

Reply to: