Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Fast access to local webserver in Internet Explorer Apps
I'm sure this is common knowledge somewhere, but I discovered by accident that you don't need to type "http://localhost" or "http://127.0.0.1" to get your local Apache server in IE 5.2.1.

You can just type "http:///" and hit return.

[Editor's note: This doesn't work with Mozilla or OmniWeb.]
    •    
  • Currently 3.00 / 5
  You rated: 3 / 5 (4 votes cast)
 
[3,944 views]  

Fast access to local webserver in Internet Explorer | 8 comments | Create New Account
Click here to return to the 'Fast access to local webserver in Internet Explorer' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
What doesn't work?
Authored by: sharumpe on Jul 30, '02 11:14:06AM

Just to clarify, the 'localhost' (usually) and '127.0.0.1' (definitely) addresses should work in ANY application to refer to the local machine. Probably http:/// will not (and should not, since it's not a properly-formed URL).

Mr. Sharumpe



[ Reply to This | # ]
What doesn't work?
Authored by: robg on Jul 30, '02 11:22:31AM

The shortcut doesn't work, that's all I meant to say...

-rob.



[ Reply to This | # ]
can be even shorter: /
Authored by: hayne on Jul 30, '02 01:35:30PM

In IE 5.2.1 (and possibly other browsers), you can get to the root document by typing one character - just type a single slash in the address field and hit Return.
I.e. you don't need the "http://"



[ Reply to This | # ]
Triple Slash
Authored by: J0l on Jul 30, '02 03:43:28PM

.... Triple slash will go to the root file in the webserver, as the first 2 are seen as normal, the third as the root file (usually index.html, though it could be index.php, index.htm etc etc how ever you setup httpd.conf).

Useless? No not at all actually extremely useful. Say if you want to use a normal home page graphic (a logo that always goes home), instead of using absolute URL's (bad idea for portablilty) use something like this <a href="/"><img scr="somegraphic"></a> then no matter how much you nest pages in different directories instead of using .../../etc, the link to the homepage of the site. So basically an absolute path to the root file.

Also it has another more spoofing function. It goes to the users loopback address. Meaning if I'm running Apache and say there is a link on Macosxhints.com which has three slashes then my browser will connect to my machine and no this website. I only discovered this when I clicked on a link and it went to my custom index page and the associate next to me running Wintel and IIS did the same thing.



[ Reply to This | # ]
One more...
Authored by: buc40 on Jul 30, '02 09:16:27PM

You could also put the following:

"http:///~username"

And get to your home page int your sites folder.

just my $0.02

SA



[ Reply to This | # ]
Also works for FTP
Authored by: averagebacon on Jul 30, '02 11:16:18PM

This hint also works for ftp within IE. Go to ftp:///



[ Reply to This | # ]
OmniWeb solution
Authored by: ackbar on Aug 01, '02 08:48:37AM

Although OmniWeb does not allow this, you can do (basically) the same thing with the "Shortcut" preference pane, in OmniWeb's preferences. For example, one of the defaults is "google foo" which is a shortcut for the URL for a google search of "foo".

In this instance, you could create a shortcut for "home" or "me" or "/" or whatever, so you wouldn't even have to type "http:///" to get to your local webserver. The shortcuts in OmniWeb speed up my daily surfing considerably, especially for search sites since it eliminates a page load.



[ Reply to This | # ]
OmniWeb solution
Authored by: Elektron on Aug 12, '02 03:52:24PM

Or you could just use http://0/ (zero), which should work on any unixy OS.

There's also 0.0.0.0. When you're connected at 300 baud, you're bound to make up fun ways to shorten things.



[ Reply to This | # ]