Apache Server configuration support - Resolving directory calls on Apache

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > April 2004 > Resolving directory calls on Apache





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Resolving directory calls on Apache
OJ

2004-04-18, 10:36 am

Hi there,

I've used php123 from firepages, before, and decided to try
apache2triad. Did a fresh install. It runs apache2. I can get to:

127.0.0.1/phpmyadmin

but

localhost/phpmyadmin

does not work. However,

http://localhost/apache2cp/apache2cp.html

does resolve correctly (so it isn't the hosts file). Anything that
ends without a specific file sends me to my IE "default" homepage with
a search. How do I get localhost to allow the directory type call
like above? What's the magic config?

Sorry for the new question. I just don't think I'm googling the right
terms.

Thanks!

oj
Davide Bianchi

2004-04-18, 10:36 am

OJ <orljustin@aol.com> wrote:
> localhost/phpmyadmin
> does not work


Meaning? Do you get a 'page not found' or what?

> ends without a specific file sends me to my IE "default" homepage with


Probably because IE doesn't understand that you want a web page, try
using Mozilla or another browser.

Davide

--
| In the beginning was the word. But by the time the second word was
| added to it, there was trouble. For with it came syntax ...
|
|
HansH

2004-04-18, 10:36 am

"OJ" <orljustin@aol.com> schreef in bericht
news:77d3a68b.0404180520.2ac9e785@posting.google.com...
> Hi there,
> I've used php123 from firepages, before, and decided to try
> apache2triad. Did a fresh install. It runs apache2. I can get to:
> 127.0.0.1/phpmyadmin
> but
> "localhost/phpmyadmin" does not work.

I presume it is a folder, so that _file_ is indeed non-exsistant.

> However, http://localhost/apache2cp/apache2cp.html
> does resolve correctly (so it isn't the hosts file). Anything that
> ends without a specific file sends me to my IE "default" homepage with
> a search. How do I get localhost to allow the directory type call
> like above? What's the magic config?

After adding a trailing slash to both arguments of an alias or a scriptalias
directive, append it to your request too: "localhost/phpmyadmin/"

> Sorry for the new question. I just don't think I'm googling the right
> terms.

http://httpd.apache.org/docs-2.0/misc/rewriteguide.html
" Trailing Slash Problem
Description: Every webmaster can sing a song about the problem of the
trailing slash on URLs referencing directories. If they are missing, the
server dumps an error, because if you say /~quux/foo instead of /~quux/foo/
then the server searches for a file named foo. And because this file is a
directory it complains. Actually it tries to fix it itself in most of the
cases, but sometimes this mechanism need to be emulated by you. For instance
after you have done a lot of complicated URL rewritings to CGI scripts etc.
"

HansH


OJ

2004-04-18, 3:33 pm

Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in message news:<c5u0bn$544qq$5@ID-18487.news.uni-berlin.de>...
> OJ <orljustin@aol.com> wrote:
>
> Meaning? Do you get a 'page not found' or what?
>
>
> Probably because IE doesn't understand that you want a web page, try
> using Mozilla or another browser.
>
> Davide



Hey,

Geez, you're right here. netscape had no problem. Asking for
http://localhost gave me the directory listing.

Originally, I had IE installed from an AT&T disk, so IE when it gets
the same address above, defaults to:
http://www.att.net/cgi-bin/websearc...y&qry=localhost
but 127.0.0.1 works fine.

That's bizarre. I don't even know how to phrase the question to ask
why IE does this. If you know, don't just say because it's crap...

oj
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com