Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The media url 404 #54

Open
naivewen opened this issue Nov 1, 2017 · 1 comment
Open

The media url 404 #54

naivewen opened this issue Nov 1, 2017 · 1 comment

Comments

@naivewen
Copy link

naivewen commented Nov 1, 2017

How can I make the right conf of the media? When I access the media,the nginx shows 404. But the static url is right!

This is the part of local.py

#MEDIA_ROOT = os.path.join(BASE_DIR, "media")
MEDIA_ROOT = '/home/taiga/media'
#STATIC_ROOT = os.path.join(BASE_DIR, "static")
STATIC_ROOT = '/home/taiga/static'

And the default.conf

# Static files
location /static {
    alias /taiga/static;
}

# Media files
location /media {
    alias /taiga/media;
}

How can I fix the error?
Regards.

@naivewen
Copy link
Author

naivewen commented Nov 1, 2017

OH! I find the problem that it doesn't have the media volumes ! How can I add the volumes without the dockerFile?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant