Question Locked

Web server on internal network

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi there.

I need to set up a web server on my internal network to be used by internal, and external clients.
I can get access to the web server fine, but when linking to resources from other external web servers (ie, pictures and audio), I get a red cross instead of the picture, but only when accessing it from the internal network. It all works fine externally to my network.

I have done a bit of reading, but cannot find much info for this situation. I need the web site displayed exactly the same from the internal and external clients.

Is the only way to set up a DNS server on the internal network, and point www.mydomain.com to the local address??

Also, I believe this would only work if links were to the domain, and not the WAN address of the server.

Is there a solution? If so, could somebody please point me to a site that explains how it is done?

Many thanks

3 replies

by thumbsup2

If your links to images is pointing to http://www.whatever.com/images/imagename.jpg, they will only work when being viewed from an outside location. Likewise, if you make the links to images point to c:/inetpub/www/images/imagename.jpg, it will only work from internal. So, make the links pointing to images dynamic... ie, they are are served in relation to the web site.

Example: (without the brackets... hope this works in the forum)

For a folder directly under where the web page is located, use...

"images/imagename.jpg"

For a folder up one directory, then into images folder from there, use....

"../images/imagename.jpg"

So, no matter where the page is being served from/to, the image file isn't "lost".

by jason_k

Thanks for the replies.

I managed to configure my local DNS server to re-direct www.mydomain.com to my local webserver....which worked a treat. So now all internal clients can access resources as if it were an external server....but a hell of a lot faster :)

One issue I found with the last suggestion, is if I were to post a linked image on a forum or some such, pointing to mydomain.com (internal web server), I couldn't see it.
Now, all works well providing the DNS server holds up.

Cheers

This discussion is closed to new replies.