MultiformeIngegno

  • Posts: 1,337
Aeva Media and Nginx
« on June 18th, 2012, 01:49 AM »Last edited on June 18th, 2012, 02:24 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!

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
Re: Aeva Media and Nginx
« Reply #1, 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.
The way it's meant to be

MultiformeIngegno

  • Posts: 1,337
Re: Aeva Media and Nginx
« Reply #2, on June 18th, 2012, 02:13 AM »Last edited on June 18th, 2012, 02:20 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:

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
Re: Aeva Media and Nginx
« Reply #3, on June 18th, 2012, 02:29 AM »
Folder ownership/permissions? Can it be seen by Nginx?

MultiformeIngegno

  • Posts: 1,337
Re: Aeva Media and Nginx
« Reply #4, 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

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
Re: Aeva Media and Nginx
« Reply #5, 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.