BackupPC-users

Re: [BackupPC-users] localhost translated as 127.0.0.1 vs. ::1 messing up permissions

2009-12-07 12:19:32
Subject: Re: [BackupPC-users] localhost translated as 127.0.0.1 vs. ::1 messing up permissions
From: "Jeffrey J. Kosowsky" <backuppc AT kosowsky DOT org>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Mon, 07 Dec 2009 12:16:41 -0500
Please ignore my previous host.
It's a Fedora configuration issue. Nothing to do with BackupPC.

Jeffrey J. Kosowsky wrote at about 12:10:00 -0500 on Monday, December 7, 2009:
 > My /etc/httpd/conf.d/BackupPC.conf file (which is the default in
 > Fedora 12) restricts access to localhost (which makes sense) as
 > follows:
 >    allow from 127.0.0.1
 > 
 > My /etc/hosts file has these (Fedora default) lines at the top:
 >    127.0.0.1   localhost localhost.localdomain localhost4 
 > localhost4.localdomain4 mycomputer.mydomain
 >    ::1         localhost localhost.localdomain localhost6 
 > localhost6.localdomain6 mycomputer.mydomain
 > 
 > When I access the web interface from my Console, using either
 > http://127.0.0.1/BackupPC or http://localhost/BackupPC, everything
 > works (as expected) and the httpd access_log records the access as coming
 > from 127.0.0.1
 > 
 > However when I access the web interface via an ssh tunnel using 
 > -L 8145:localhost:80 and http://127.0.0.1:8145/BackupPC, somehow the
 > address gets translated to ::1 (as shown by the httpd error_log
 > records) which causes access to be denied.
 > 
 > Now I know I can fix this either by removing the ::1 line from the
 > hosts file or by adding ::1 to the /etc/httpd/conf.d/BackupPC.conf
 > file.
 > 
 > But I want to understand first why in an ssh tunnel the 127.0.0.1:8145
 > address would be translated to ::1 rather than to 127.0.0.1
 > 
 > 
 > ------------------------------------------------------------------------------
 > Join us December 9, 2009 for the Red Hat Virtual Experience,
 > a free event focused on virtualization and cloud computing. 
 > Attend in-depth sessions from your desk. Your couch. Anywhere.
 > http://p.sf.net/sfu/redhat-sfdev2dev
 > _______________________________________________
 > BackupPC-users mailing list
 > BackupPC-users AT lists.sourceforge DOT net
 > List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
 > Wiki:    http://backuppc.wiki.sourceforge.net
 > Project: http://backuppc.sourceforge.net/
 > 

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/