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

webserver using name based virtual hosts, make problem

Dear Bernd Eckenfels or apache webserver user:

On Tue, Dec 24, 2002 at 04:51:04AM -0700, eric lin wrote:

>>   Do you know why in the html code to show photo by
>> <img src=" or jpg"> work but
>> <img src="http://www.domain.com/photo.gif or jpg"> not work?

you are totally in the wrong list, but anyway:

eighter www.domain.com does not resolv to or you web server is
using name based virtual hosts. The ip does match the default host, the name
does match another one.

If you want us to help you need to provide real address, real error messages
and a description of your network.

Do you use proxies? Firewalls? What kind of firewall? What happens if you
directly type the images address (both) in your browser?


please help on "The ip does match the default host, but the name does match another one."

I have some related lines about this in my /etc/apache/httpd.conf


# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e. use
# "www" instead of the host's real name).
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.

ServerName  www.linuxspice.com

# UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
# Apache needs to construct a self-referencing URL (a url that refers back
# to the server the response is coming from) it will use ServerName and
# Port to form a "canonical" name.  With this setting off, Apache will
# use the hostname:port that the client supplied, when possible.  This
# also affects SERVER_NAME and SERVER_PORT in CGIs.
UseCanonicalName on


MaxClients 150

# MaxRequestsPerChild: the number of requests each child process is
#  allowed to process before the child dies.
#  The child will exit so as to avoid problems after prolonged use when
#  Apache (and maybe the libraries it uses) leak.  On most systems, this
#  isn't really needed, but a few (such as Solaris) do have notable leaks
#  in the libraries.

MaxRequestsPerChild 30

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the VirtualHost command

#Listen 3000

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.

DocumentRoot /var/www
Please help again, thanks in advance

Sincere Eric
linux pc for sale

Reply to: