MultiformeIngegno

  • Messages: 1 337
Aeva Media and Nginx
« le 18 Juin 2012 à 01:49 »Modifié le 18 Juin 2012 à 02:24
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.
  • Messages: 1 841
Re: Aeva Media and Nginx
« Réponse #1, le 18 Juin 2012 à 02:09 »
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

  • Messages: 1 337
Re: Aeva Media and Nginx
« Réponse #2, le 18 Juin 2012 à 02:13 »Modifié le 18 Juin 2012 à 02:20
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.
  • Messages: 1 841
Re: Aeva Media and Nginx
« Réponse #3, le 18 Juin 2012 à 02:29 »
Folder ownership/permissions? Can it be seen by Nginx?

MultiformeIngegno

  • Messages: 1 337
Re: Aeva Media and Nginx
« Réponse #4, le 18 Juin 2012 à 02:34 »
Citation de Dragooon le 18 Juin 2012 à 02:29
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..
Posté : 18 Juin 2012 à 02:31

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.
  • Messages: 1 841
Re: Aeva Media and Nginx
« Réponse #5, le 18 Juin 2012 à 02:35 »
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.