hOw are people logging into their astlinux box as http://localhost when the astlinux machine has no x windows or browser on it. Wouldn't the web interface user always be someone on a client machine and not at the console of the astlinux? -Christopher
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lonnie Abelbeck Sent: Wednesday, September 17, 2008 12:09 PM To: AstLinux Users Mailing List Subject: Re: [Astlinux-users] web interface: user.conf in rc.conf.d On Sep 17, 2008, at 10:55 AM, Philip Prindeville wrote: >>> You can just serve back whatever prefix came in the original GET >>> request, right? >>> >>> If the user said: >>> >>> http://host.mydomain.com/foo >>> >>> then return something starting with http://host.mydomain.com/ and if >>> he >>> said: >>> >>> http://192.168.1.1/foo >>> >>> then return something starting with http://192.168.1.1/ -- this will >>> also make it more compatible with reverse-proxy servers operating >>> through a NATting gateway. >>> >>> -Philip >>> >> >> Philip, I think I understand what you are saying... >> >> Use the $_SERVER['HTTP_HOST'] to generate the public host and the >> Prefs tab URL string for the local path... in this special case. >> >> Possibly if the user specified http://localhost/bla..bla, I could >> replace "://localhost" with ://$_SERVER['HTTP_HOST'], since localhost >> would normally have no application in an HTML anchor href= >> >> Anyone see a problem with this? >> >> Lonnie >> > > But the user never would specify "http://localhost/..." would he? > > -Philip Exactly, so it is fair-game to specify in the Prefs tab External URL and I dynamically change 'localhost' before it hits the browser. Philip, thanks for the tip to solve this. Lonnie ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Astlinux-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Astlinux-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]
