Apache Server configuration support - One more try on UserDir

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > April 2004 > One more try on UserDir





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 One more try on UserDir
Lil' Abner

2004-04-24, 4:33 am

I asked almost this same question a week or so ago and was referred to
documentation on websites. Which I followed up on and still can't come up
with an answer.
I'm running Redhat 9.0 with Apache 1.3.29. My user directories are in
/home/*/web and calls to a user's pages are going there. Without execute
permissions on the "web" directory, I get "access denied". If I give the
directory execute permissions, then I get "Unable to display the page"
Nothing shows in the error log. I put an .htaccess file in that directory
and munged it on purpose (allow all instead of allow from all). Then I'd
get a different error when trying to access it. "Internal Server Error"
Then I looked in the error log and it pointed out my mistake in
..htaccess. So it IS reading the directory. The directory contains a
valid index.html and DirectoryIndex is set to index.html index.htm.
I don't believe the directory really needs an .htaccess file, but it is
----
order allow,deny
allow from all
----
I get the same symptoms with or without it.
Address on the Redhat machine is www.mewnlite.com:8080/~ted
What you're *supposed* to see is at www.mewnlite.com/~ted
That's my Windows 98 machine which has been humming along fine for
two years. With Apache 1.3.12.
Identical index.html
I might point out that I'm not Ted. He is a good friend of mine who is a
Linux fanatic. He has root priviledges and has been working on it himself
for a week too, and can't figure it out.
Can anyone help?

--
I child-proofed my house but they are still getting in.
Davide Bianchi

2004-04-24, 11:34 am

Lil' Abner <blvstk@dogpatch.com> wrote:
> permissions on the "web" directory, I get "access denied".


That's correct. The web directory have to be world-readable and
world-executable.

> Address on the Redhat machine is www.mewnlite.com:8080/~ted


Ok, if I do www.whatever/~ted I got a "linus.localdomain could
not be found", if I use www..../~ted/ (note the last '/'), it works
perfectly. So is a matter of trailing slashes.
Check your UserDir and your <Directory ...> settings for trailing
slashes.

Davide

--
| "A power so great, it can only be used for Good or Evil!" -- Firesign
| Theatre, "The Giant Rat of Summatra"
|
|
Lil' Abner

2004-04-24, 1:33 pm

Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in news:c6e1l7$b425b$2
@ID-18487.news.uni-berlin.de:

> Lil' Abner <blvstk@dogpatch.com> wrote:
>
> That's correct. The web directory have to be world-readable and
> world-executable.
>
>
> Ok, if I do www.whatever/~ted I got a "linus.localdomain could
> not be found", if I use www..../~ted/ (note the last '/'), it works
> perfectly. So is a matter of trailing slashes.
> Check your UserDir and your <Directory ...> settings for trailing
> slashes.


Thank you! I just put the slash on there and it worked for me too. My
Userdir is just "UserDir web"
The other one is <Directory /home/*/web>
No slashes on either one. I tried *adding* slashes but it made no
difference. But you have given me hope... thanks again!

--
I child-proofed my house but they are still getting in.
Lil' Abner

2004-04-24, 2:33 pm

"Lil' Abner" <blvstk@dogpatch.com> wrote in
news:Xns94D57FC23FBE8butter@216.196.105.138:

> Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in
> news:c6e1l7$b425b$2 @ID-18487.news.uni-berlin.de:
>
>
> Thank you! I just put the slash on there and it worked for me too.
> My
> Userdir is just "UserDir web"
> The other one is <Directory /home/*/web>
> No slashes on either one. I tried *adding* slashes but it made no
> difference. But you have given me hope... thanks again!


I have it working now. The only thing that is changed now from the way
I had it was that the ServerName was still commented from the original
httpd.conf setup. I uncommented it and changed it to "www.mewnlite.com".
What prompted me to do that was your comment about "linus.localdomain". I
didn't think that was something the world was supposed to see... :-)
I don't know if that had anything to do with my original problem or
not but it works now!




--
I child-proofed my house but they are still getting in.
Davide Bianchi

2004-04-24, 2:33 pm

Lil' Abner <blvstk@dogpatch.com> wrote:
> httpd.conf setup. I uncommented it and changed it to "www.mewnlite.com".


He was probably unable to find his own servername, and that lead to
strange behavour in processing 'incomplete' requests. For 'incomplete'
I mean a request where is not clear if you are asking for a specific
file or for a directory (so a 'default' file).

Davide

--
| I have seen the future and it is just like the present, only longer.
|
|
|
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com