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="http://18.104.22.168/photo.gif 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 22.214.171.124 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
# this, ask your network administrator.
# 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.
# 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.
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the VirtualHost command
# 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.
Please help again, thanks in advance
linux pc for sale