You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Christos Jonathan Seth Hayward <ch...@gmail.com> on 2014/01/27 23:54:37 UTC
[users@httpd] Why is this VirtualHost serving 403's for Aliased directories?
I am attempting to set a VirtualHost to Alias two directories, and proxy
everything else to a Gunicorn server (adding SSL in passing). The
VirtualHost is:
<VirtualHost *:443>
ServerName ccachicago.pragmatometer.com
Alias /media/ "/home/jonathan/ccachicago/media/"
ErrorLog /var/log/apache2/error.log
<Directory "/home/jonathan/ccachicago/media/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
Alias /admin/static/
"/usr/lib/python2.7/dist-packages/django/contrib/admin/static/"
<Directory
"/usr/lib/python2.7/dist-packages/django/contrib/admin/static/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
#Deny from all
#Allow from 127.0.0.0/255.0.0.0 ::1/128
#Allow from 0.0.0.0 ::1/128
Allow from all
Deny from none
</Directory>
ProxyPass /media/ !
ProxyPass /admin/static/ !
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/ssl.crt
SSLCertificateKeyFile /etc/apache2/ssl/ssl.key
ServerAdmin CJSHayward@PObox.com
</VirtualHost>
Any ideas as to what here is causing trouble?
--
[image: Christos Jonathan Seth Hayward] <http://jonathanscorner.com/>
Christos Jonathan Seth Hayward, an Orthodox Christian author.
Amazon / Kindle <http://amazon.com/author/cjshayward> * *Author
<http://cjshayward.com/>* * Author Bio <http://jonathanscorner.com/author/>
* *Email <ch...@gmail.com>* *
Facebook<http://www.facebook.com/christos.jonathan.hayward>
* Fan Page <http://fan.cjshayward.com/> * Google
Plus<http://jonathanscorner.com/plus>
* LinkedIn <http://www.linkedin.com/in/jonathanhayward> * *Professional
<http://jonathanhayward.com/>* * Twitter<http://twitter.com/JonathansCorner>
* *Web <http://jonathanscorner.com/>* * What's
New?<http://jonathanscorner.com/>
If you read just *one* of my books, you'll want *The Best of Jonathan's
Corner <http://www.amazon.com/dp/1478219912>*.
Re: [users@httpd] Why is this VirtualHost serving 403's for Aliased directories?
Posted by Eric Covener <co...@gmail.com>.
> Alias /media/ "/home/jonathan/ccachicago/media/
>
> Any ideas as to what here is causing trouble?
Usually there'd be a hint in the error.log. Likely /home/jonathan/
not world-executable.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org