Hello,
I'm quite new to Nginx, but so far i've had reasonable success in getting things to work, until I try and use the Sympa mailing list web interface.
With this config:
server {
listen 80;
server_name www.tld.co.uk;
location /static-sympa {
alias /var/lib/sympa/static_content;
}
location /sympa {
root /usr/lib/cgi-bin/sympa;
gzip off;
fastcgi_pass unix:/etc/php5/fpm/socks/www.tld.co.uk.sock;
fastcgi_split_path_info ^(/sympa)(.+)$;
include /etc/nginx/fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param SCRIPT_FILENAME $document_root/wwsympa-wrapper.fcgi;
fastcgi_intercept_errors on;
}
And with this in the /etc/nginx/fastcgi_params file:
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
On trying to access www.tld.co.uk/sympa I get nothing at all in the Nginx error log, and the following in the Nginx access log:
<client IP> - - [18/May/2014:23:00:04 +0100] "GET /sympa HTTP/1.1" 200 6205 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36"
Even with php5-fpm configured for debug logging, nothing happens in the php5-fpm.log file either (and I can see that things do happen in this file for other Nginx web pages like postfixadmin or roundcube, so am reasonably confident that php5-fpm is correct).
What puzzles me most is that what gets posted to the clients web browser when visiting www.tld.co.uk/sympa is the following:
ELF>Ä@@0@8 @@@@@@øø88@8@@@ŒŒ è è `è `X` ``ààTT@T@DDPåtd¨¨@¨@,,QåtdRåtdè è `è `/lib64/ld-linux-x86-64.so.2GNUGNUD¬kV´,û¯@©ècÞã‰Ø¡;C, 3#__gmon_start__libc.so.6setregidsetreuidexecvegetegidgeteuid__libc_start_mainGLIBC_2.2.5ui Uà````` `(`Hƒìè÷HƒÄÃÿ5ê ÿ%ì @ÿ%ê héàÿÿÿÿ%â héÐÿÿÿÿ%Ú héÀÿÿÿÿ%Ò hé°ÿÿÿÿ%Ê hé ÿÿÿÿ% héÿÿÿATUH‰ÕSH‰óè‘ÿÿÿA‰Äè‰ÿÿÿD‰æ‰Çè¿ÿÿÿèªÿÿÿA‰Äè¢ÿÿÿD‰æ‰Çè¸ÿÿÿHÇ€@H‰ÞH‰ê[]A\¿€@émÿÿÿ1íI‰Ñ^H‰âHƒäðPTIÇÀÐ@HÇÁà@HÇÇp@è3ÿÿÿôHƒìH‹å H…ÀtÿÐHƒÄøG`UH-@`HƒøH‰åw]øH…Àtô]¿@`ÿà€¸@`UH-@`HÁøH‰åH‰ÂHÁê?HÐH‰ÆHÑþu]úH…Òtô]¿@`ÿ =¹ uUH‰åè~ÿÿÿ]Ʀ óÃ@Hƒ=P t¸H…ÀtU¿ø `H‰åÿÐ]é{ÿÿÿévÿÿÿóÃfffff.„H‰l$ØL‰d$àH-ÿ L%ð L‰l$èL‰t$ðL‰|$øH‰\$ÐHƒì8L)åA‰ýI‰öHÁýI‰×èËýÿÿH…ít1Û@L‰úL‰öD‰ïAÿÜHƒÃH9ërêH‹\$H‹l$L‹d$L‹l$ L‹t$(L‹|$0HƒÄ8ÃHƒìHƒÄÃ/usr/lib/cgi-bin/sympa/wwsympa.fcgi;,XýÿÿHÈýÿÿp(ÿÿÿ 8ÿÿÿ¸zRx$ýÿÿpFJw€?;*3$",DPýÿÿSBŒA†D ƒABt€þÿÿ$Œxþÿÿ‰QŒ†_@FƒŽ @€@ð@ l@è `ð `˜@õþÿoÐ@°@ð@ aè``@H@ þÿÿo(@ÿÿÿoðÿÿo@`@&@6@F@V@f@.shstrtab.interp.note.ABI-tag.note.gnu.build-id.gnu.hash.dynsym.dynstr.gnu.version.gnu.version_r.rela.dyn.rela.plt.init.text.fini.rodata.eh_frame_hdr.eh_frame.init_array.fini_array.jcr.dynamic.got.got.plt.data.bss8@8T@T !t@t$8˜@˜44öÿÿoÐ@Ð>ð@ðÀF°@°aNÿÿÿo@[þÿÿo(@( jH@Ht`@` ~ð@ðy@p„p@püŠl@l x@x0˜¨@¨,¦Ø@Ø´°è `è ¼ð `ð Èø `ø Í`àÖà`àÛè`èHä0`0ê@`@@ï
I hope that somebody on this list can please help me understand what it is doing.
Many Thanks in advance!