Display problem for inside and outside users on private server
Display problem for inside and outside users on private server
am 25.10.2007 20:16:17 von Xonan
I have a private web server (apache) on the inside of a firewall. The
firewall has a static IP but no domain name attached to the network. The
server can be reached by using the real IP address and the port number
(8090) that I opened in the firewall, like so...
http://nnn.nnn.nnn.nnn:8090. The server can also be reached from the
inside on the private network by using the servers address...
http://192.168.0.20
So far so good, except in the case of images. If I use
src="http://localhost/logo.png" width="417" height="137" border="0"
alt="Logo"> it works fine if accessed from the server itself, but nowhere
else.
border="0" alt="Logo"> works from itself and on any machine on the inside
private network, but not from outside.
height="137" border="0" alt="Logo"> works from outside, but image links
are broken for inside users.
I know why it is happening, but so far haven't come up with an answer that
allows images to be presented to both inside and outside users on the
network I have described. A domain name would be a good fix, but is not
an option.
Anybody?
Re: Display problem for inside and outside users on private server
am 26.10.2007 05:41:56 von Neredbojias
Well bust mah britches and call me cheeky, on Thu, 25 Oct 2007 18:16:17
GMT Xonan scribed:
> I have a private web server (apache) on the inside of a firewall. The
> firewall has a static IP but no domain name attached to the network.
> The server can be reached by using the real IP address and the port
> number (8090) that I opened in the firewall, like so...
> http://nnn.nnn.nnn.nnn:8090. The server can also be reached from the
> inside on the private network by using the servers address...
> http://192.168.0.20
>
> So far so good, except in the case of images. If I use
> src="http://localhost/logo.png" width="417" height="137" border="0"
> alt="Logo"> it works fine if accessed from the server itself, but
> nowhere else.
>
>
> border="0" alt="Logo"> works from itself and on any machine on the
> inside private network, but not from outside.
>
>
> height="137" border="0" alt="Logo"> works from outside, but image
> links are broken for inside users.
>
> I know why it is happening, but so far haven't come up with an answer
> that allows images to be presented to both inside and outside users on
> the network I have described. A domain name would be a good fix, but
> is not an option.
>
> Anybody?
Install php, plug values for domain.
--
Neredbojias
Just a boogar in the proboscis of life.
Re: Display problem for inside and outside users on private server
am 26.10.2007 06:46:57 von BootNic
Xonan wrote:
news:pan.2007.10.25.18.16.16.333445@nospam.com:
> I have a private web server (apache) on the inside of a firewall. The
> firewall has a static IP but no domain name attached to the network.
> The server can be reached by using the real IP address and the port
> number (8090) that I opened in the firewall, like so...
> http://nnn.nnn.nnn.nnn:8090. The server can also be reached from the
> inside on the private network by using the servers address...
> http://192.168.0.20
>
> So far so good, except in the case of images. If I use
> src="http://localhost/logo.png" width="417" height="137" border="0"
> alt="Logo"> it works fine if accessed from the server itself, but
> nowhere else.
>
>
> border="0" alt="Logo"> works from itself and on any machine on the
> inside private network, but not from outside.
>
>
> height="137" border="0" alt="Logo"> works from outside, but image
> links are broken for inside users.
SSI example:
SSI:
logo.png"
width="417" height="137" alt="Logo">
PHP example:
$myserver = 'http://'.$_SERVER["SERVER_NAME"].
':'.$_SERVER["SERVER_PORT"].'/'
?>
PHP:
width="417" height="137" alt="Logo">
> I know why it is happening, but so far haven't come up with an answer
> that allows images to be presented to both inside and outside users on
> the network I have described. A domain name would be a good fix, but
> is not an option.
A free redirect my be something to look at:
[url] http://www.no-ip.com [/url]
--
BootNic Friday October 26, 2007 12:46 AM
All my humor is based upon destruction and despair. If the whole
world was tranquil, without disease and violence, I'd be standing on
the breadline right in back of J. Edgar Hoover.
*Lenny Bruce US comedian, satirist, author*
Re: Display problem for inside and outside users on private server
am 26.10.2007 18:01:49 von Xonan
> SSI example:
>
>
> SSI:
logo.png"
> width="417" height="137" alt="Logo">
>
>
Ah so. The hosting company that this will eventually be on doesn't allow
PHP but I had forgotten about server side includes. Should do it.
Thanks
Xonan
Re: Display problem for inside and outside users on private server
am 26.10.2007 21:58:12 von I V
On Thu, 25 Oct 2007 13:16:17 -0500, Xonan wrote:
> So far so good, except in the case of images. If I use
> src="http://localhost/logo.png" width="417" height="137" border="0"
> alt="Logo"> it works fine if accessed from the server itself, but
> nowhere else.
Do you have to use absolute URLs? Have you tried:
Re: Display problem for inside and outside users on private server
am 27.10.2007 00:51:01 von Neredbojias
Well bust mah britches and call me cheeky, on Fri, 26 Oct 2007 19:58:12 GMT
I V scribed:
>> So far so good, except in the case of images. If I use
>> src="http://localhost/logo.png" width="417" height="137" border="0"
>> alt="Logo"> it works fine if accessed from the server itself, but
>> nowhere else.
>
> Do you have to use absolute URLs? Have you tried:
>
>
All right, I V, I've seen that x-face somewhere before. It is one of them
generalissimos from the past?
--
Neredbojias
Just a boogar in the proboscis of life.
Re: Display problem for inside and outside users on private server
am 27.10.2007 15:12:51 von Xonan
On Fri, 26 Oct 2007 19:58:12 +0000, I V wrote:
> On Thu, 25 Oct 2007 13:16:17 -0500, Xonan wrote:
>> So far so good, except in the case of images. If I use
>> src="http://localhost/logo.png" width="417" height="137" border="0"
>> alt="Logo"> it works fine if accessed from the server itself, but
>> nowhere else.
>
> Do you have to use absolute URLs? Have you tried:
>
>
Interesting that you bring that up. It works just fine if that img line
is in a normal HTML script. But if that exact same script is generated
from a CGI program, it does not. Obviously there are some path
ramifications present that I don't understand yet.
Xonan
Re: Display problem for inside and outside users on private server
am 27.10.2007 17:06:04 von Adrienne Boswell
Gazing into my crystal ball I observed Xonan
writing in news:pan.2007.10.27.13.12.50.845176@nospam.com:
> On Fri, 26 Oct 2007 19:58:12 +0000, I V wrote:
>
>> On Thu, 25 Oct 2007 13:16:17 -0500, Xonan wrote:
>>> So far so good, except in the case of images. If I use
>>> src="http://localhost/logo.png" width="417" height="137" border="0"
>>> alt="Logo"> it works fine if accessed from the server itself, but
>>> nowhere else.
>>
>> Do you have to use absolute URLs? Have you tried:
>>
>>
>
> Interesting that you bring that up. It works just fine if that img
line
> is in a normal HTML script. But if that exact same script is
generated
> from a CGI program, it does not. Obviously there are some path
> ramifications present that I don't understand yet.
>
> Xonan
>
>
>
So you need to play with the CGI until it spits out the HTML needed.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share