public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Is there an Apache configuration guide for gentoo?
@ 2009-10-04  6:28 David Juhl
  2009-10-04  6:56 ` Dirk Heinrichs
  0 siblings, 1 reply; 9+ messages in thread
From: David Juhl @ 2009-10-04  6:28 UTC (permalink / raw
  To: gentoo-user

I want my http server to listen on port 8181, and I want to configure
userdir.  

/etc/conf.d/apache2  
APACHE2_OPTS="-D USERDIR"
added Listen 8181 to /etc/apache2/http.conf

/etc/apache2/modules.d/00_mod_userdir.conf
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
<Directory /home/*/public_html>
        AllowOverride FileInfo AuthConfig Limit Indexes
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        <Limit GET POST OPTIONS>
                Order allow,deny
                Allow from all
        </Limit>
        <LimitExcept GET POST OPTIONS>
                Order deny,allow
                Deny from all
        </LimitExcept>
</Directory>

so if it is read only why can't I read?
You don't have permission to access /~david16/ on this server
Dave




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Is there an Apache configuration guide for gentoo?
  2009-10-04  6:28 [gentoo-user] Is there an Apache configuration guide for gentoo? David Juhl
@ 2009-10-04  6:56 ` Dirk Heinrichs
  2009-10-04  9:04   ` Mick
  2009-10-05  9:34   ` David Juhl
  0 siblings, 2 replies; 9+ messages in thread
From: Dirk Heinrichs @ 2009-10-04  6:56 UTC (permalink / raw
  To: gentoo-user

Am Sonntag 04 Oktober 2009 08:28:16 schrieb David Juhl:

> so if it is read only why can't I read?
> You don't have permission to access /~david16/ on this server

Does the user that runs the server process have permissions to read from tha 
directory?

Bye...

	Dirk



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Is there an Apache configuration guide for gentoo?
  2009-10-04  6:56 ` Dirk Heinrichs
@ 2009-10-04  9:04   ` Mick
  2009-10-04 12:40     ` Allan Gottlieb
  2009-10-05  9:34   ` David Juhl
  1 sibling, 1 reply; 9+ messages in thread
From: Mick @ 2009-10-04  9:04 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 918 bytes --]

On Sunday 04 October 2009, Dirk Heinrichs wrote:
> Am Sonntag 04 Oktober 2009 08:28:16 schrieb David Juhl:
> > so if it is read only why can't I read?
> > You don't have permission to access /~david16/ on this server
>
> Does the user that runs the server process have permissions to read from
> tha directory?
>
> Bye...
>
> 	Dirk

Typically the directory would be owned by apache and the authentication on it 
will be controlled by the apache htpasswd mechanism.  In your case you will 
need to set:

        Options FollowSymLinks
        AllowOverride All

for each directory.  The ownership of the files is less important - they can 
be owned by any user/root/apache/etc... BUT the permissions on the directory 
must be such so that all can access (x) and read (r) what's in it.  I'm going 
from memory here, so you may need to try out things until you get it to work.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Is there an Apache configuration guide for gentoo?
  2009-10-04  9:04   ` Mick
@ 2009-10-04 12:40     ` Allan Gottlieb
  2009-10-04 16:08       ` David Juhl
  0 siblings, 1 reply; 9+ messages in thread
From: Allan Gottlieb @ 2009-10-04 12:40 UTC (permalink / raw
  To: gentoo-user

At Sun, 04 Oct 2009 10:04:13 +0100 Mick <michaelkintzios@gmail.com> wrote:

> On Sunday 04 October 2009, Dirk Heinrichs wrote:
>> Am Sonntag 04 Oktober 2009 08:28:16 schrieb David Juhl:
>> > so if it is read only why can't I read?
>> > You don't have permission to access /~david16/ on this server
>>
>> Does the user that runs the server process have permissions to read from
>> tha directory?
>>
>> Bye...
>>
>> 	Dirk
>
> Typically the directory would be owned by apache and the authentication on it 
> will be controlled by the apache htpasswd mechanism.  In your case you will 
> need to set:
>
>         Options FollowSymLinks
>         AllowOverride All
>
> for each directory.  The ownership of the files is less important - they can 
> be owned by any user/root/apache/etc... BUT the permissions on the directory 
> must be such so that all can access (x) and read (r) what's in it.  I'm going 
> from memory here, so you may need to try out things until you get it to work.

You also need to set USERDIR in /etc/conf.d/apache2.

APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D USERDIR"

allan



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Is there an Apache configuration guide for gentoo?
  2009-10-04 12:40     ` Allan Gottlieb
@ 2009-10-04 16:08       ` David Juhl
  2009-10-04 16:58         ` Mick
  0 siblings, 1 reply; 9+ messages in thread
From: David Juhl @ 2009-10-04 16:08 UTC (permalink / raw
  To: gentoo-user

On Sun, 2009-10-04 at 08:40 -0400, Allan Gottlieb wrote:
> FollowSymLinks

 ls -l ...
drwxr-xr-x  3 david16 apache    112 2009-10-03 15:25 public_html

groups ...
wheel cron audio cdrom video cdrw apache usb users portage plugdev games
david16 sambashare vboxusers wireshark luks stb-admin scanner fuse

/etc/conf.d/apache2:
APACHE2_OPTS="-D USERDIR -D INFO"
# APACHE2_OPTS="-D USERDIR -D DEFAULT_VHOST -D INFO -D SSL -D
SSL_DEFAULT_VHOST -D LANGUAGE"

I assume it is safe to on put USERDIR because I don't need the others...

still get You don't have permission to access /~david16/index.html on
this server.

Dave




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Is there an Apache configuration guide for gentoo?
  2009-10-04 16:08       ` David Juhl
@ 2009-10-04 16:58         ` Mick
  0 siblings, 0 replies; 9+ messages in thread
From: Mick @ 2009-10-04 16:58 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 779 bytes --]

On Sunday 04 October 2009, David Juhl wrote:
> On Sun, 2009-10-04 at 08:40 -0400, Allan Gottlieb wrote:
> > FollowSymLinks
>
>  ls -l ...
> drwxr-xr-x  3 david16 apache    112 2009-10-03 15:25 public_html
>
> groups ...
> wheel cron audio cdrom video cdrw apache usb users portage plugdev games
> david16 sambashare vboxusers wireshark luks stb-admin scanner fuse
>
> /etc/conf.d/apache2:
> APACHE2_OPTS="-D USERDIR -D INFO"
> # APACHE2_OPTS="-D USERDIR -D DEFAULT_VHOST -D INFO -D SSL -D
> SSL_DEFAULT_VHOST -D LANGUAGE"
>
> I assume it is safe to on put USERDIR because I don't need the others...

Oops!  Add:

 -D DEFAULT_VHOST 

in /etc/conf.d/apache2 and try again (assuming that you have configured your 
webserver as a vhost).
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Is there an Apache configuration guide for gentoo?
  2009-10-04  6:56 ` Dirk Heinrichs
  2009-10-04  9:04   ` Mick
@ 2009-10-05  9:34   ` David Juhl
  2009-10-06  1:28     ` Keith Dart
  1 sibling, 1 reply; 9+ messages in thread
From: David Juhl @ 2009-10-05  9:34 UTC (permalink / raw
  To: gentoo-user

I gave up on apache.  I'm positive the permissions are right, and
coughed it up to not understanding the config files.  I use nginx now.

http://djuhl.homedns.org:8181/files/snapshots/Screenshot.jpg


http://wiki.nginx.org/Main

Dave

On Sun, 2009-10-04 at 08:56 +0200, Dirk Heinrichs wrote:
> Am Sonntag 04 Oktober 2009 08:28:16 schrieb David Juhl:
> 
> > so if it is read only why can't I read?
> > You don't have permission to access /~david16/ on this server
> 
> Does the user that runs the server process have permissions to read from tha 
> directory?
> 
> Bye...
> 
> 	Dirk
> 




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Is there an Apache configuration guide for gentoo?
  2009-10-05  9:34   ` David Juhl
@ 2009-10-06  1:28     ` Keith Dart
  2009-10-06  1:32       ` David Juhl
  0 siblings, 1 reply; 9+ messages in thread
From: Keith Dart @ 2009-10-06  1:28 UTC (permalink / raw
  To: gentoo-user

=== On Mon, 10/05, David Juhl wrote: ===
> I gave up on apache.  I'm positive the permissions are right, and
> coughed it up to not understanding the config files.  I use nginx now.

===

I use lighttpd and don't have any problems with it. Its configuration
is a bit obtuse, however, so i have had to wrap wrapper scripts to
configure it. 



-- Keith Dart

-- 
-- --------------------
Keith Dart
<keith@dartworks.biz>
=======================



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Is there an Apache configuration guide for gentoo?
  2009-10-06  1:28     ` Keith Dart
@ 2009-10-06  1:32       ` David Juhl
  0 siblings, 0 replies; 9+ messages in thread
From: David Juhl @ 2009-10-06  1:32 UTC (permalink / raw
  To: gentoo-user

I found nginx....  But the documentation on it is a little hard to
understand.  I tried to follow some examples...  I got it working...
I'll need to play with it some more..


-- 
David L. Juhl




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-10-06  1:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-04  6:28 [gentoo-user] Is there an Apache configuration guide for gentoo? David Juhl
2009-10-04  6:56 ` Dirk Heinrichs
2009-10-04  9:04   ` Mick
2009-10-04 12:40     ` Allan Gottlieb
2009-10-04 16:08       ` David Juhl
2009-10-04 16:58         ` Mick
2009-10-05  9:34   ` David Juhl
2009-10-06  1:28     ` Keith Dart
2009-10-06  1:32       ` David Juhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox