Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache probleem - unable to check htaccess file, en [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Dutch
View previous topic :: View next topic  
Author Message
realbuzz
n00b
n00b


Joined: 15 Feb 2004
Posts: 13
Location: Netherlands

PostPosted: Fri Mar 19, 2004 11:23 am    Post subject: Apache probleem - unable to check htaccess file, en [solved] Reply with quote

Hoi iedereen,

Eerst even toegeven dat ik vrij nieuw met Gentoo ben, net een paar maandjes mee bezig :)
Ik heb een Apache server draaien, die niet wil werken zoals ik het wil.

Deze apache draait op heeerlijk.com waarbij users hun website kunnen zetten op heeerlijk.com/~username . Als er naar URL heeerlijk.com/~peter20 gegaan wordt is het gewoon zichtbaar, echter heeerlijk.com zelf niet.

De website staat op /var/www/localhost/htdocs . Users zetten hun website in WWW , dit is vrijwel het enige naast Indexes wat ik heb aangepast in commonapache2.conf .

Echter, als er gesurft wordt naar heeerlijk.com verschijnt de melding:
Code:
Forbidden
You don't have permission to access / on this server.


/var/log/apache2/error.log geeft dan:
Code:
[Fri Mar 19 12:04:08 2004] [crit] [client 194.109.x.x] (13)Permission denied: /var/www/localhost/htdocs/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable


Ik heb _geen_ .htaccess file staan in /var/www/localhost/htdocs , naar mijn idee hoeft hier ook geen file te staan, ook met .htaccess file zelfde foutmelding.

De versie van apache is:
Code:
net-www/apache
      Latest version available: 2.0.48-r1
      Latest version installed: 2.0.48-r1


Ik zal hieronder mijn commonapache2.conf pasten, als iemand een idee heeft hoe ik dit kan oplossen, heel erg welkom!! ;) Als er meer informatie gegeven moet worden, geef het dan ff aan.

Code:
### /etc/apache2/conf/commonapache2.conf

[knip]

###
### This should be changed to whatever you set DocumentRoot to.
###
<Directory /var/www/localhost/htdocs>
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
    Options -Indexes FollowSymLinks MultiViews
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#   
    AllowOverride All
#       
# Controls who can get stuff from this server.
#       
    <IfModule mod_access.c>
      Order allow,deny
      Allow from all
    </IfModule>
</Directory>

[knip]


Alvast bedankt!
groetjes,
Peter


Last edited by realbuzz on Sat Mar 20, 2004 10:49 am; edited 2 times in total
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Mar 19, 2004 12:40 pm    Post subject: Reply with quote

Lees de man pages voor AllowOverride eens goed door - de config is zo lek als een mandje.
Als AllowOverride op None staat, worden er ook geen htaccess files gecheckt - probleem opgelost.
Onder welke gebruiker draait apache, en kloppen de permissies voor de web root directory ?
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
realbuzz
n00b
n00b


Joined: 15 Feb 2004
Posts: 13
Location: Netherlands

PostPosted: Fri Mar 19, 2004 5:17 pm    Post subject: Reply with quote

bedankt! hij geeft nu een andere foutmelding, daar ga ik vanavond even mee aan de slag.. :)
ik laat het nog even weten of ik er uitkom.

zoals ik al aangaf ben ik vrij nieuw :)

de user waar Apache onder draait, dat is toch:

Code:
### Common server configuration.
###
User apache
Group apache


of is dat iets heel anders..?

behalve het Allowoverride, wat is er volgens jou nog meer 'lek' aan de configuratie? tips zijn altijd welkom, verwijzen naar handleidingen is erg welkom, als je aangeeft waar en hoe ik het kan lezen. :) Ik neem aan dat het Override gedeelte in de man pages van Apache staat.. ?

groetjes!
Back to top
View user's profile Send private message
realbuzz
n00b
n00b


Joined: 15 Feb 2004
Posts: 13
Location: Netherlands

PostPosted: Fri Mar 19, 2004 7:47 pm    Post subject: Reply with quote

heb de override op none gezet en de directoryrechten voor de rootwebdirectory aangepast, hij werkt!

thnx :roll:

Als je nog security tips heb, die zijn altijd welkom ;)

groetjes,
Peter
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Dutch All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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