Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know this is probably a stupid question but I'm desperate. I'm working on a server and I have added a virtual host entry like the below one:-

<VirtualHost *:80>
DocumentRoot "/volumes/1TB/htdocs/someserver"
DirectoryIndex index.html index.php
<Directory "/volumes/1TB/htdocs/someserver">
    AllowOverride All
    Options All -Includes -ExecCGI +MultiViews -Indexes

From my internet research I have assumed that the command AllowOverride All should give me the result, So I have added this entry so as to make the .htaccess files in the directory to work. But I still don't get the desired result(The htaccess inside the directory is not working). Thanks in advance.

share|improve this question
It could be interesting to know the content of the .htaccess file and if any error occured – Kdecherf Apr 8 '13 at 22:02
Hey Kdecherf, I have tested the same htaccess on my personal server, and It did work finely. – daemon54 Apr 8 '13 at 22:06
Can you define "not working"? Tell us what you are trying to achieve with your .htaccess file, what you are doing to test it, what result you expected, and what you got in stead. Als are you sure that your requests are served by this virtual host context, and not by the default? – Krist van Besien Apr 9 '13 at 5:17
First check that your httpd.conf allows .htaccess files to work. The relevant directives are AccessFileName and AllowOverride. And read . – Jenny D Apr 9 '13 at 6:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.