Opened 18 months ago

Last modified 18 months ago

#5519 new defect

Wrong directory served when requesting videos

Reported by: Bruno Santos Owned by:
Priority: major Milestone:
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

Subtickets

Change History (1)

comment:1 Changed 18 months ago by Bruno Santos

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

Note: See TracTickets for help on using tickets.