Move the media directories to gluster

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2015-03-17 12:01:06 +00:00
parent 25996ac327
commit 7da6565a64
2 changed files with 3 additions and 3 deletions

View file

@ -35,9 +35,9 @@ ExpiresByType image/gif "access plus 1 week"
Allow from all
</Location>
Alias /upfiles/ /var/lib/askbot/upfiles/ask/
Alias /upfiles/ /srv/askbot-uploaded/
<Directory /var/lib/askbot/upfiles/ask>
<Directory /srv/askbot-uploaded>
Order deny,allow
Allow from all
</Directory>

View file

@ -78,7 +78,7 @@ LANGUAGE_CODE = 'en'
# Absolute path to the directory that holds uploaded media
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'askbot', 'upfiles')
MEDIA_ROOT = '/srv/askbot-uploaded'
MEDIA_URL = '/upfiles/'
STATIC_URL = '/m/'#this must be different from MEDIA_URL