Re: OT: Accessing users' pages on Apache
On Sat, 2002-09-14 at 04:20, Kent West wrote:
> OK, really stupid question I'm sure.
>
> I've never played with setting up a web server, but last night decided
> it was time to at least learn the rudiments, so I apt-got apache-server.
>
> The default web page when I pointed Moz to "http://localhost" has this
> to say:
>
> * The DocumentRoot, which is the directory under which all your HTML
> files should exist, is set to /var/www.
>
> And sure enough, a quick look at /etc/apache/httpd.conf confirms this
> setting. I used Mozilla Composer to create a new "index.html" file that
> just has a single link to another index.html file in my
> home/westk/public_html directory, as mentioned below. This page shows up
> now when I point Moz to "http://localhost".
>
> * User directories are enabled, and user documents will be looked
> for in the public_html directory of the users' homes. These dirs
> should be under /home, and users will not be able to symlink to
> files they don't own.
>
>
> So I created the directory "/home/westk/public_directory" and used
> Mozilla Composer to create a simple ("Hello, World!" style) file, named
> it "index.html", and dropped it into that directory.
>
> Then I tried pointing Moz to "http://localhost/~westk" and various other
> permutations, and nothing worked.
>
> I spent 30 or 40 minutes last night googling for the answer, and another
> 30/40 tonight Dogpiling for one. (Can you believe there's not a simple
> "Beginner's guide to using Apache in a Debian environment" that's easily
> found?)
Hi,
As someone else mentioned, /home/kwest needs to have execute
permissions. Also make sure that the following section is there in
httpd.conf
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Order deny,allow
Deny from all
</Limit>
</Directory>
You can change some of the options if you like but that is the default
that I got.
Also make sure that the loadmodule statement for userdir_module is
uncommented.
All I can really think of. Check the logs for what it says about your
trying to access http://localhost/~kwest/
HTH,
Shri
PS - As someone else has already mentioned, just search for apache help,
none of this is specific to debian (although some of the commands might
be like apachectl which I believe is specific to redhat - you can just
use the /etc/init.d/apache {start|stop|restart|reload|})
--
------------------------------------------------------------------------
Shri Shrikumar U R Byte Solutions
I.T. Consultant 26/3 Annandale Street Tel: (0131) 558 9990
Email: shri@urbyte.com Edinburgh EH7 4AN Web: www.urbyte.com
Reply to: