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

in Apache on Ubuntu I've set up a vhost, but in the browser I keep getting a "403 Access forbidden" error; the log says "Client denied by server configuration: /home/remix/".

Looking for the solution online I found many posts about the directory access (Allow from all, etc), but as far as I know I already did that. In httpd-vhosts.conf there is the following code:

NameVirtualHost *:80

<VirtualHost *:80>
    DocumentRoot "/opt/lampp/htdocs/"
    ServerName localhost
    ServerAlias localhost
    ErrorLog "logs/"
    CustomLog "logs/" common

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot "/home/remix/"
    ServerName testproject
    ServerAlias testproject
    <Directory "/home/remix/">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all

I've also added    testproject

to the /etc/hosts file.

Also, the /home/remix/ folder contains an index.html file and vhosts are enabled in httpd.conf.

Is there anything I'm not seeing?

Edit: This is the Apache error_log entry:

[Sat Aug 18 09:15:32.666938 2012] [authz_core:error] [pid 6587] 
[client] AH01630: client denied by server configuration: /home/remix/
share|improve this question
What's in Apache's error log? – Shane Madden Aug 17 '12 at 6:16
Ah, I thought I forgot something... I've added it to the original post. – RemiX Aug 18 '12 at 7:17
What version of Apache are you using? – Shane Madden Aug 18 '12 at 7:29
Apache/2.4.2 (Unix) – RemiX Aug 20 '12 at 7:09

3 Answers 3

up vote 32 down vote accepted

Change your authorization configuration:

<Directory /home/remix/>
    Order allow,deny
    Allow from all
</Directory> the Apache 2.4 version of the same.

<Directory /home/remix/>
    Require all granted

Review the upgrading overview document for information on other changes you might need to make - and be aware that most of the config examples and assistance that you find out there on Google (as well as on this site) is referring to 2.2.

share|improve this answer
Thank you! That's it!! – RemiX Aug 21 '12 at 9:36
thank you very much, saved my day – JoZ3 Oct 16 '13 at 22:06
If I had time, I'd log a bug about this because httpd -t says there's no problem using the older syntax, and neither does httpd -S. In my mind, the whole point of a configuration checker is that it should be pointing out problems! ...If you have a directory you're referencing w/o this, it won't work - simple as that. ...Thumbs up on the answer. – Richard T Apr 12 at 23:36

Make sure that the user who is running httpd service has access to this directories.

share|improve this answer
I'm not sure who the user for httpd is or how to check, but everyone can read (user/group/other). – RemiX Aug 18 '12 at 7:24
Check httpd.conf for User param. – cpt.Buggy Aug 18 '12 at 12:08
Ok it says 'User nobody', and 'Group nogroup'. I tried changing it to 'User remix' (which is the owner of the folder), but even that won't help. – RemiX Aug 20 '12 at 7:06

Check the permissions on the directory. I would bet that it's set to deny access to anyone but yourself, for instance:

$ ls -ld /home/remix
drwx------ 92 remix remix 4096 Aug 17 22:59 /home/remix

If you see drwx------ exactly, then this is the case. Fix it by running:

chmod a+x /home/remix
share|improve this answer
I see: drwxrwxr-x 2 remix remix 4096 Aug 16 09:36 /home/remix. I tried the command anyway, without effect. – RemiX Aug 18 '12 at 7:26
Ahh, can't win 'em all. – Michael Hampton Aug 18 '12 at 7:28

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.