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

Re: <img src="http://<staticip>/file"> work but http://www.domain.com/file"> not work



Christian Hammers wrote:
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://12.34.56.78/photo.gif or jpg"> work but
<img src="http://www.domain.com/photo.gif or jpg"> not work?

There are several web servers running on the host that has only one IP
address. Web browsers are sending the hostname as HTTP option to
identify the right one. It's called virtual hosting.

Although thanks your reply, but I already bind that staticip with my registered domain at my registar, they shuold open the same webpage
/var/www/index.html
and
I put the photo in /var/www/
the uRL of browser and hyper link all work by both ways(staticip or registered domain) only <img src="http://static ip work
                           but           www.registereddomain.com  not work

see you have any idea of binding so the code in <img src="http://www.registereddomain.com
can be resolved to
     http://staticip that my registar already bind

highly apprecaite any tech help, and thanks in advance

bye,

-christian-





--
Sincere Eric
www.linuxspice.com
linux pc for sale



Reply to: