Welcome! Log In Create A New Profile


nginx 1.10.1 with php-fpm: download all files as index.php (or as index.zip by zip downloads)

Posted by dzisslep 

i spend now more than for 10 hours on my nginx.conf around and despair slowly :(
My Problem:
If you want to surf on my nginx as web-proxy and want to download a file via a web page, this will always be downloaded as index.php.
File size matches the targeted file size.
My first suspect was that it is up to the activate gzip encoding or wrong mime.types implementation ...
nginx.conf, mime.types, fastcgi_params and an example download-file attached ...

Use php5-fpm, oensuse 13.2 and nginx 1.10.1

Further infos: when the download-file is an zip file the download named index.zip...
i have no idea why :-/
open | download - nginx.conf (5.9 KB)
open | download - fastcgi_params.txt (1.3 KB)
open | download - nginx_further_files.zip (22.9 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 129
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready