Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 and htaccess
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Allan Eising
n00b
n00b


Joined: 12 Feb 2004
Posts: 5

PostPosted: Wed Feb 25, 2004 2:30 pm    Post subject: Apache2 and htaccess Reply with quote

Hello I have a problem.
Before I get to the problem, I better specify my configuration:
Apache2: Server version: Apache/2.0.48
Running with php4.3.4, and mod_ssl

My problem is, that apache2 totally ignores my .htaccess files. I have checked everything (I think) - mod_access is loaded. The right options are specified in commonapach2.conf, which is correctly loaded. The .htaccess is chmod'et correctly also. I have absolutely no idea what to do, so please help me.
Back to top
View user's profile Send private message
malloc
l33t
l33t


Joined: 19 Sep 2003
Posts: 762

PostPosted: Wed Feb 25, 2004 5:07 pm    Post subject: Reply with quote

It's not setup correctly if it was it would work :wink:
Try to put here the conf part regarding the htaccess.
Back to top
View user's profile Send private message
Allan Eising
n00b
n00b


Joined: 12 Feb 2004
Posts: 5

PostPosted: Wed Feb 25, 2004 9:35 pm    Post subject: Reply with quote

Well. I haven't changed anything from the default conf of it, and those lines seemed reasonable enough to me


Anyway, here is the conf file:
http://www.agitate.dk/commonapache2.conf
Back to top
View user's profile Send private message
casper
Tux's lil' helper
Tux's lil' helper


Joined: 02 Nov 2003
Posts: 110
Location: Philadelphia, USA

PostPosted: Thu Feb 26, 2004 12:05 am    Post subject: Reply with quote

<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>

that's ur lil bug...u never tell it to drop ppl :)
_________________
fortune men-women:
"To our sweethearts and wives. May they never meet.
-- 19th century toast"
Back to top
View user's profile Send private message
Allan Eising
n00b
n00b


Joined: 12 Feb 2004
Posts: 5

PostPosted: Thu Feb 26, 2004 5:03 pm    Post subject: Reply with quote

I don't get it. What do you want me to change?
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Thu Feb 26, 2004 5:38 pm    Post subject: Reply with quote

deny from all
_________________
linux: #232767
Back to top
View user's profile Send private message
Allan Eising
n00b
n00b


Joined: 12 Feb 2004
Posts: 5

PostPosted: Thu Feb 26, 2004 7:28 pm    Post subject: Reply with quote

That doesn't help at all...
Back to top
View user's profile Send private message
primus
Apprentice
Apprentice


Joined: 07 Jun 2003
Posts: 230

PostPosted: Thu Feb 26, 2004 8:55 pm    Post subject: Reply with quote

Allan Eising,

when you said, "That doesn't help at all...", do you mean the explaination "deny from all" doesnt make sense, or you tried it and apache still doesnt work properly?

if it is the first, then you should have in your commonapache2.conf:
Code:

<IfModule mod_access.c>
    Order deny,allow
    Deny from all
</IfModule>


i think that is what was meant... if that doesnt work, then you may need to give a directory to set these parameters on like:

Code:

<Directory />
  # maybe for the AllowOverride, you need to say like ExecCGI, or something besides None
  AllowOverride None
  <IfModule mod_access.c>
    Order deny,allow
    Deny from all
  </IfModule>
</Directory>


i hope this helps...
_________________

$japh=qq/62D112U107N106E28D89U104N109E89 D86U96N102E14D77U87N106E96D12U68N95E98 D102U101N101E/;
map { $i++ while chop; push (@dune,$i); undef $i; } split /[eE]/;
map { print chr ${\(shift(@dune) + $_)}; } split /[DUNE]/,$japh;
Back to top
View user's profile Send private message
nepenthe
Guru
Guru


Joined: 14 Jul 2002
Posts: 317
Location: Sanford, ME

PostPosted: Mon Mar 01, 2004 10:17 pm    Post subject: Reply with quote

actually i am experincing the same problem here is relevant data:

.htaccess
Code:

Options Indexes


commonapache2.conf
Code:

<Directory />
  Options -All -Multiviews
  AllowOverride Options
  <IfModule mod_access.c>
    Order deny,allow
    Deny from all
  </IfModule>
</Directory>


Only to recieve the 403 error =)
Back to top
View user's profile Send private message
nepenthe
Guru
Guru


Joined: 14 Jul 2002
Posts: 317
Location: Sanford, ME

PostPosted: Mon Mar 01, 2004 10:25 pm    Post subject: Reply with quote

:oops: Okay so chomd 666 .htaccess made things work.... lol figures such an easy solution.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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