Welcome Guest, Not a member yet? Register   Sign In
codeigniter + nginx + php-fpm

Hello, and thanks for your response.

Actually I manage to make it work, at least part of it.

I'm having another problem now and I have no idea how to solve it.

The thing is, in the webpage I have, if a user click in a button I have there, the application should generate a file and send it to the browser, so the user can get it.
I'm not sure which is the source of the problem, because I'm just getting a 404 but I suppose is because of the headers I'm using. Is that possible?
In Apache this part is working nice with the following headers:

header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Disposition: attachment; filename=$file");
header("Content-Type: application/(application_type)");
header("Content-Transfer-Encoding: binary");

But with nginx this is not working.
The file is generated, because if I go the destination folder, the file is there, but this file is not sent to the browser.
Other thing, my project is in /var/www/project and the generated files are stored in /home/user/generated. Is this a problem?

In the log I'm just getting the 'No such file or directory' explain in the following link (in Error log section):
So I think the problem is not related with that...

Any of you knows anything about this?



Messages In This Thread
codeigniter + nginx + php-fpm - by El Forum - 11-24-2010, 07:23 AM
codeigniter + nginx + php-fpm - by El Forum - 11-24-2010, 12:10 PM
codeigniter + nginx + php-fpm - by El Forum - 11-30-2010, 09:52 AM

Theme © iAndrew 2016 - Forum software by © MyBB