Wedge

Public area => The Pub => Off-topic => Topic started by: MultiformeIngegno on June 18th, 2012, 01:49 AM

Title: Aeva Media and Nginx
Post by: MultiformeIngegno on June 18th, 2012, 01:49 AM
I switched from Apache2 to Nginx. Everything works fine except aeva media, files don't show up! :(
It's not the problem of FileZilla + ASCII files (I downloaded and uploaded 'em with WinSCP), it has to do with rewrites I presume.. Maybe I should add some rewrites in vhost declaration in order to have these links to work..:
index.php?action=media;sa=media;in=XXX;preview

If I try to visit that link I get "File not found".

A strange thing is that attachments/avatar work.. and they have links like:
index.php?action=dlattach;attach=XXX;type=avatar

Not so different!

P.S.: Of course mgal_data path set is correct!
Title: Re: Aeva Media and Nginx
Post by: Dragooon on June 18th, 2012, 02:09 AM
The problem lies somewhere else, the links are never redirected, the functions associated with those URLs actually serve the file. So you cannot actually add some rewrites.
Title: Re: Aeva Media and Nginx
Post by: MultiformeIngegno on June 18th, 2012, 02:13 AM
Uhm, you are right. In fact if I try to upload a media I get (it's not the exact text because I have it in italian) "Destination path is wrong". But that's strange because if I go to Aeva Media settings the paths are correct (both "server" and "browser")! :unsure:
Title: Re: Aeva Media and Nginx
Post by: Dragooon on June 18th, 2012, 02:29 AM
Folder ownership/permissions? Can it be seen by Nginx?
Title: Re: Aeva Media and Nginx
Post by: MultiformeIngegno on June 18th, 2012, 02:34 AM
Quote from Dragooon on June 18th, 2012, 02:29 AM
Folder ownership/permissions? Can it be seen by Nginx?
Yep, nginx runs as www-data and folder are owned by him.. anyway I tried also with 777 but it's the same..
Posted: June 18th, 2012, 02:31 AM

Uhm.. in AeMe settings I can't even see the albums icon:
/forum/index.php?action=media;sa=media;in=5;icon

Error! File not found
Title: Re: Aeva Media and Nginx
Post by: Dragooon on June 18th, 2012, 02:35 AM
Pretty much looks like either your paths are wrong or PHP can't access the folders for some other reason, so none of the icons would work either.