You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Robert Moskowitz <rg...@htt-consult.com> on 2006/01/01 16:00:49 UTC
[users@httpd] Beginning Apache 2 setup
Linux Centos 4.2 build
Double NATed and behind firewall (lab net), so security too much of
an issue at this time.
Goal: set up a directory of files to access by another system.
So I enable user directory, do a chmod 711 /home/user and chmode 755
/home/user/public_html
And get forbidden access.
What did I do wrong, or better yet where is a GOOD source? (or even
a setup script!)
So I try to put files in /var/www/html, while logged in as root.
Create index.html with the sole content of:
hello
and that displays.
So I create directory xx
and localhost/xx does not exist.
So I create file /var/www/html/more.html
and localhost/more.html does not exist.
OK. Where have I gone wrong?
I have an OLD version of Apache running on NT, but that of course is
a diffferent setup.
Barrs Law of Recursive futility
If you're smart enough to use one of these....
.....you can probably manage without one!
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Beginning Apache 2 setup
Posted by Robert Moskowitz <rg...@htt-consult.com>.
At 10:57 AM 1/1/2006, httpd2@karsites.net wrote:
>Have you sent up a directory container in your httpd.conf
>file to give apache access to the said directory?
>
>like:
thanks for the tips. I suspect that I have to do ALL of this....
><Directory path/to/your/dir>
> Options None
> Options Indexes
> Order deny,allow
> Deny from all
> Allow from localhost
> Allow from
></Directory>
>
>Also, if you want to allow access to the directories in
>/home/user/public_html, you will need to enable load and
>enable mod_userdir, as these directories are usually outside
>of the normal document root path. see Apache Module
>mod_userdir for details.
>
>Keith
>
>
>On Sun, 1 Jan 2006, Robert Moskowitz wrote:
>
> > To: users@httpd.apache.org
> > From: Robert Moskowitz <rg...@htt-consult.com>
> > Subject: [users@httpd] Beginning Apache 2 setup
> >
> > Linux Centos 4.2 build
> >
> > Double NATed and behind firewall (lab net), so security too much of an
> > issue at this time.
> >
> > Goal: set up a directory of files to access by another system.
> >
> > So I enable user directory, do a chmod 711 /home/user and chmode 755
> > /home/user/public_html
> >
> > And get forbidden access.
> >
> > What did I do wrong, or better yet where is a GOOD source? (or even a
> > setup script!)
> >
> > So I try to put files in /var/www/html, while logged in as root.
> >
> > Create index.html with the sole content of:
> >
> > hello
> >
> > and that displays.
> >
> > So I create directory xx
> >
> > and localhost/xx does not exist.
> >
> > So I create file /var/www/html/more.html
> >
> > and localhost/more.html does not exist.
> >
> > OK. Where have I gone wrong?
> >
> > I have an OLD version of Apache running on NT, but that of course is a
> > diffferent setup.
> >
> >
> > Barrs Law of Recursive futility
> > If you're smart enough to use one of these....
> > .....you can probably manage without one!
> >
> >
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > " from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Beginning Apache 2 setup
Posted by ht...@karsites.net.
Have you sent up a directory container in your httpd.conf
file to give apache access to the said directory?
like:
<Directory path/to/your/dir>
Options None
Options Indexes
Order deny,allow
Deny from all
Allow from localhost
Allow from
</Directory>
Also, if you want to allow access to the directories in
/home/user/public_html, you will need to enable load and
enable mod_userdir, as these directories are usually outside
of the normal document root path. see Apache Module
mod_userdir for details.
Keith
On Sun, 1 Jan 2006, Robert Moskowitz wrote:
> To: users@httpd.apache.org
> From: Robert Moskowitz <rg...@htt-consult.com>
> Subject: [users@httpd] Beginning Apache 2 setup
>
> Linux Centos 4.2 build
>
> Double NATed and behind firewall (lab net), so security too much of an
> issue at this time.
>
> Goal: set up a directory of files to access by another system.
>
> So I enable user directory, do a chmod 711 /home/user and chmode 755
> /home/user/public_html
>
> And get forbidden access.
>
> What did I do wrong, or better yet where is a GOOD source? (or even a
> setup script!)
>
> So I try to put files in /var/www/html, while logged in as root.
>
> Create index.html with the sole content of:
>
> hello
>
> and that displays.
>
> So I create directory xx
>
> and localhost/xx does not exist.
>
> So I create file /var/www/html/more.html
>
> and localhost/more.html does not exist.
>
> OK. Where have I gone wrong?
>
> I have an OLD version of Apache running on NT, but that of course is a
> diffferent setup.
>
>
> Barrs Law of Recursive futility
> If you're smart enough to use one of these....
> .....you can probably manage without one!
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org