LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-14-2008, 12:23 PM   #1
metalenkist
Member
 
Registered: Aug 2005
Distribution: OpenSuse 11.1
Posts: 36

Rep: Reputation: 15
.htaccess files are ignored :(


Hey all, I hope you can help me with this.

My .htaccess files are ingored I and I don't have a clue why.
It must be a simple thing but I can't see it

Can you guys help me out?

Thnx in advance

My httpd.conf

Code:
#forbid access to the entire filesystem by default

<Directory />
    Options +Includes +FollowSymlinks +Indexes
    AllowOverride All
    Order deny,allow
    Allow from all
</Directory>

# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">

    Order allow,deny
    Allow from all
</Files>
Code:
<VirtualHost 192.168.0.7>
    ServerAdmin info@zadkinesux.nl
    documentRoot /srv/www/htdocs/zadkinesux.nl/search.zadkinesux.nl/
    ServerName search.zadkinesux.nl
    <Directory />
     AllowOverride All
    </Directory>
</VirtualHost>

my .htaccess file which should generate server error
Code:
ajdskajdkajsdajsdak
 
Old 10-14-2008, 02:57 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
It seems like you have AllowOverride set to None as far as Apache is concerned.

You have enabled AllowOverride on /; have you turned this off in any intermediate directory?

It could be that your Apache hasn't read its configuration files properly. If you run apachectl reload, then it should tell you in error_log if there is any problem reading httpd.conf.
 
Old 10-14-2008, 03:40 PM   #3
metalenkist
Member
 
Registered: Aug 2005
Distribution: OpenSuse 11.1
Posts: 36

Original Poster
Rep: Reputation: 15
Talking Fixed

Thnx a lot you gave me some inspiration to look at it again. I think I might accidently did uncomment lines as

Code:
Include /etc/apache2/default-server.conf
I hardly can't image that it was uncommented by default.

Well thnx a lot the problem is fixed now!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache .htaccess <files> and <limit> nathan2225 Linux - Software 0 10-22-2007 04:59 AM
Apache not reading .htaccess files jmoschetti45 Linux - Server 5 03-18-2007 09:35 AM
problem getting .htaccess files work wiggywag Slackware 6 02-17-2004 01:21 PM
.htaccess files joel112 Linux - Software 3 09-30-2003 11:28 AM
Cannot see .htaccess and .htpasswd files John_Saunders Linux - Newbie 2 07-21-2002 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration