Opened 7 years ago

Closed 5 years ago

#5519 closed defect (no-action)

Wrong directory served when requesting videos

Reported by: Bruno Santos Owned by:
Priority: major Milestone: 0.10.0
Component: programming Keywords: 404 not found, user_dev, media requesting
Cc: Parent Tickets:

Description

This is a bug or someone missing something in documentation:

Documentation asks to create a user_dev saying that were's the media gets uploaded and nginx configuration gmedia_static points to this user_dev, but when requesting the media in mediagoblin,nginx goes to /srv/mediagoblin.domain/mediagoblin/media/public/media_entries

instead of

/srv/mediagoblin.domain/mediagoblin/user_dev/media/public/

someone should update the documentation of change the nginx configuration...

I'm using CentOS 7.0 x86_64

Change History (3)

comment:1 by Bruno Santos, 7 years ago

One workaround is to delete the public directory in user_dev/media and create a symlink pointing to media/public

pwd
/srv/mediagoblin.domain/mediagoblin/user_dev/media

ln -s ../../media/public/

ls -l

drwxr-xr-x 2 mediagoblin nginx  6 Jul 26 11:45 plugin_static
lrwxrwxrwx 1 root        root  19 Jul 26 12:37 public -> ../../media/public/
drwxr-xr-x 2 mediagoblin nginx  6 Jul 26 11:45 theme_static
drwxr-xr-x 3 mediagoblin nginx 22 Jul 26 12:39 workbench

This way, keep the nginx configuration (probably need for themes and plugins) and solve the problem

comment:2 by Ben Sturmfels, 5 years ago

Milestone: 0.10.0

We should test this one before releasing 0.10.0.

comment:3 by Ben Sturmfels, 5 years ago

Resolution: noaction
Status: newclosed

I've just tested the install docs thoroughly in Debian 10 and CentOS 8. They may not have been correct at the time the issue was raised, but they definitely are now and media is uploaded into the expected location.

Closing this issue as no action required.

Note: See TracTickets for help on using tickets.