I am trying to set up an Apache VirtualHost on an Ubuntu 13.10 EC2 instance that will serve up media documents from a directory old-school-style. There is an existing VirtualHost which is handling a ProxyPass well enough, and the following:

<VirtualHost *:80>
    ServerName media.ccachicago.org
    ServerAlias media.ccachicago.pragmatometer.com
    DocumentRoot /home/ubuntu/ccachicago/media
    <Directory "/home/ubuntu/ccachicago/media">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        #Order deny,allow
        #Deny from all
        #Allow from ::1/128
        Order deny,allow
        Deny from all
        Allow from ::1/128
    ServerAdmin CJSHayward@PObox.com

media.ccachicago.pragmatometer.com/css/style.css is getting the following 403 error:


You don't have permission to access / on this server.

Apache/2.4.6 (Ubuntu) Server at media.ccachicago.pragmatometer.com Port 80

I've checked file permissions several ways, and as nobody I can cat /home/ubuntu/ccachicago/media/css/style.css, but I've only gotten a 403 on trying to access this VirtualHost. I've also checked that the <Directory> permissions above will allow media access to any client.

What else could I be doing that would stop the VirtualHost to serve up static media content as desired? The machine is a new Ubuntu 13.10 Amazon EC2 instance, and only has VirtualHosts, contents, etc. from the new project.

  • Does the edit mean you have an answer ? – user9517 Feb 12 '14 at 20:43
  • Yes; I was giving the answer I found. – Christos Hayward Feb 13 '14 at 17:37
  • 2
    You should really provide an answer below. – user9517 Feb 13 '14 at 19:03

I needed to replace:

Order deny, allow
Deny from all
Allow from ::1/128


Require all granted

from https://stackoverflow.com/questions/11992466/apache-permission-denied

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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