Move the media directories to gluster
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
25996ac327
commit
7da6565a64
2 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue