Networking Forums

Networking Forums > Computer Networking > Linux Networking > dyn dns & web server problem

Reply
Thread Tools Display Modes

dyn dns & web server problem

 
 
Michael Powe
Guest
Posts: n/a

 
      11-02-2003, 04:09 PM
hello,

i have a domain set up at dyndns.org for my PPPoE dsl connection.
this works fine & allows me to ssh to the box easily when i'm
travelling.

today, i notice the following behavior. if i access a web server on
that box with the external name, it works fine as long as i specify a
page name.

if i specify a directory without a name, however, the domain name
changes to the local machine name (in the browser address bar). i
don't like this one bit. although i can't think of a direct way
anyone could use the internal name of a machine to do something nasty,
i'm not a hacker. just as importantly, this action renders the
internal links unusable. while i could certainly change all the hrefs
to point back at the external name, that is not my preferred solution.

so, it looks like this.

http://www.my_dns_name.com/dir/filename.html # works
http://www.my_dns_name.com/dir/ "redirects" ->
http://my.internal_machine_name.com/dir

if "dir" has an index/home file in it, that will be displayed.

i have no idea what is causing it. is there something in my apache
config that needs to be set (it's just the default 1.3.27 config, as
far as i can recall, with the exception that i've configured cgi) or
is this an artefact of the NAT configuration on the box (done with
iptables)?

yes, i know that i shouldn't be running a web server on my firewall.
it's my only realistic option, right now.

if anyone could suggest how i can stop this particular behavior from
occurring, i would much appreciate it. i have some stuff i want to
put up.

thanks.

mp

--
cat: /home/powem/.signature: No such file or directory
 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      11-02-2003, 06:56 PM
On 2 Nov 2003 17:09:00 GMT, Michael Powe <michael+(E-Mail Removed)> wrote:
> i have a domain set up at dyndns.org for my PPPoE dsl connection.
> this works fine & allows me to ssh to the box easily when i'm
> travelling.
>
> today, i notice the following behavior. if i access a web server on
> that box with the external name, it works fine as long as i specify a
> page name.
>
> if i specify a directory without a name, however, the domain name
> changes to the local machine name (in the browser address bar). i
> don't like this one bit. although i can't think of a direct way
> anyone could use the internal name of a machine to do something nasty,
> i'm not a hacker. just as importantly, this action renders the
> internal links unusable. while i could certainly change all the hrefs
> to point back at the external name, that is not my preferred solution.


A URL that ends with a dir, requires a trailing slash.
See Apache docs for UseCanonicalName.

But setting that Off just compensates for your errors, so you should fix
ANY URL that ends with a directory to include a trailing slash.

--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
 
Reply With Quote
 
Michael Powe
Guest
Posts: n/a

 
      11-02-2003, 07:39 PM
>>>>> "David" == David Efflandt <(E-Mail Removed)> writes:

David> On 2 Nov 2003 17:09:00 GMT, Michael Powe
David> <michael+(E-Mail Removed)> wrote:

>> if i specify a directory without a name, however, the domain
>> name changes to the local machine name (in the browser address
>> bar). i don't like this one bit. although i can't think of a
>> direct way anyone could use the internal name of a machine to
>> do something nasty, i'm not a hacker. just as importantly, this
>> action renders the internal links unusable. while i could
>> certainly change all the hrefs to point back at the external
>> name, that is not my preferred solution.


David> A URL that ends with a dir, requires a trailing slash. See
David> Apache docs for UseCanonicalName.

David> But setting that Off just compensates for your errors, so
David> you should fix ANY URL that ends with a directory to
David> include a trailing slash.

well, thanks. i'll look at that at once. however, it's not "my
error." it's SOP for people to go to a web site and type in a
directory name w/o a backslash. i don't type
http://ctc.homelinux.net/, i type http://ctc.homelinux.net. and so
forth. even if i were to tell someone to use a backslash, the
likelihood is, they wouldn't.

thanks again.

mp

--
cat: /home/powem/.signature: No such file or directory
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with IP on secondary DNS server & Ras Server Kim Windows Networking 1 11-02-2006 06:00 PM
Server problem stevanflores@gmail.com Windows Networking 0 08-16-2005 10:48 AM
Network Problem using Visnetic Mail Server on Windows Server 2003 sp1 Gustavo Medina via WinServerKB.com Windows Networking 0 05-09-2005 09:54 PM
Server w/ 2 NIC's & problem Steve Grosz Windows Networking 13 03-12-2005 05:07 AM
Windows 2000 server problem on a Windows 2003 server domain =?Utf-8?B?U2Fsb25nZQ==?= Windows Networking 1 02-09-2005 03:16 PM



1 2 3 4 5 6 7 8 9 10 11