Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

User directory

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Web Server User & Group - Suse 9.0  
Author Message
blvstk

External


Since: Apr 15, 2004
Posts: 9



(Msg. 1) Posted: Thu Apr 15, 2004 11:03 pm
Post subject: User directory
Archived from groups: alt>apache>configuration (more info?)

I have just installed Apache 1.3.29 on my RedHat 9.0 machine.
I already have it installed on a Windows 98 machine and have been running
my website for two years with it. I don't remember having any big problems
setting it up in Windows.
I'm a newbie to Linux but the httpd.conf file looks pretty much the same.
My home directory is set to /usr/local/apache/home. Works fine.
However I can't get my user directories to work. I have
UseDir /usr/local/apache/users and have tried
UseDir "/usr/local/apache/users" in case the quotes made a difference.
I've put a trailing slash on it... no difference.
From experimentation I've found that a call to www.mydomain.com/~username
is actually looking in the /home directory. So I put an index.html in
/home/abner and tried www.mydomain.com/~abner and got a permission denied
error. So I changed the permissions on that folder and now I get "page not
found". That was just some playing I was doing. I don't want the users
web pages in the /home directory anyway.
So what do I need to do to make ~username point to /usr/local/apache/users?
Thanks in advance!

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

 >> Stay informed about: User directory 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Fri Apr 16, 2004 7:40 am
Post subject: Re: User directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Lil' Abner <blvstk DeleteThis @dogpatch.com> wrote:
 > /home/abner and tried <a style='text-decoration: underline;' href="http://www.mydomain.com/~abner" target="_blank">www.mydomain.com/~abner</a> and got a permission denied

All the files must be world-readable and all the directories world-readable
and world-executable. Otherwise apache won't be able to access them.

 > error. So I changed the permissions on that folder and now I get "page not
 > found".

Check the UserDir directive, it contains the name of the directory that
is looked at when you try to access an home dir.

See the documentation on <a style='text-decoration: underline;' href="http://www.apache.org" target="_blank">www.apache.org</a> about UserDir.

Davide

--
| Although the moon is smaller than the earth, it is farther away.
|
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: User directory 
Back to top
Login to vote
blvstk

External


Since: Apr 15, 2004
Posts: 9



(Msg. 3) Posted: Fri Apr 16, 2004 10:08 pm
Post subject: Re: User directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi <davideyeahsure.RemoveThis@onlyforfun.net> wrote in
news:c5no4j$3mjun$4@ID-18487.news.uni-berlin.de:

 > Lil' Abner <blvstk.RemoveThis@dogpatch.com> wrote:
  >> /home/abner and tried <a style='text-decoration: underline;' href="http://www.mydomain.com/~abner" target="_blank">www.mydomain.com/~abner</a> and got a permission
  >> denied
 >
 > All the files must be world-readable and all the directories
 > world-readable and world-executable. Otherwise apache won't be able to
 > access them.
 >
  >> error. So I changed the permissions on that folder and now I get
  >> "page not found".
 >
 > Check the UserDir directive, it contains the name of the directory
 > that is looked at when you try to access an home dir.
 >
 > See the documentation on <a style='text-decoration: underline;' href="http://www.apache.org" target="_blank">www.apache.org</a> about UserDir.

Actually I've never been able to locate an example of httpd.conf at
that site. There is mention of it but no "how-to" that I could find.
However I have found plenty of other places that go into it in detail. As
far as I can see, I have everything right, unless I need to change some
other configuration somewhere. It is still pointing requests for
"~username" to the "/home" directory.

--
I child-proofed my house but they are still getting in.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: User directory 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
user directory index - Hi all, On my Mac OS X system Apache creates an index in the DocumentRoot (http://localhost/) if no index.html is present but in the user directory (http://localhost/~username/) no index is created if no index.html page is present. I get permission denie...

Redirect of a user's public_html directory - Hello, I have a question regarding redirection using apache 1.3. The homepage of user foo, which is stored in foo's public_html directory, used to be reachable under http://myservername/~foo. Now the user foo left, and I would like to redirect all..

Apache 2.0.40 HELP- Configuring CGI in User's Public HTML .. - Wondering if anyone could shed any light on this. httpd.conf: UserDir public_html UserDir disabled root Alias /artstest /my/directory/structure/art/public_html <Directory "/my/directory/structure/art/public_html"> Options All AllowOv...

newbie: allowing access to a user home directory - Hi, I've set up apache 2.0.48 with htdocs as document root. Now I want to also allow access to one of the user directories (i.e., http://.../~username) (not all of them, only a specific one). I tried to do this in the httpd.conf file: UserDir..

user cgi-bin permissions - I set up an alias in a user dir. I can't seem to get a perl script to execute. I get the following error: The requested method POST is not allowed for the URL /cbipscreen/cgi-bin/frameset0.pl In my httpd.conf: Alias /cbipscreen..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]