Jump to content

nginx + php-fpm + kACARS_Free


Khuman

Recommended Posts

Hi, all

Can't connect by kACARS_Free client to site. Web server work on nginx + php-fpm. Prior to that, he worked at the site apache22 and had no problems.

nginx.conf:

server {
 listen		 *:80;
 server_name	 example.org;
 access_log	 /var/log/nginx/exmple.access.log;
#	 access_log	 off;
 location / {
		 root /www/example;
		 index index.php index.html;
		 if (!-e $request_filename) {
				 rewrite ^(.*)$ /index.php?q=$1 last;
		 }
 }
 location ~* ^.+\.(jpg|jpeg|gif|png|svg|swf|ico|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|xml)$ {
		 root /www/example;
		 expires max;
 }
 location ~ \.php$ {
		 fastcgi_pass unix:/tmp/php-fpm.sock;
		 fastcgi_index index.php;
		 fastcgi_param SCRIPT_FILENAME /www/example$fastcgi_script_name;
		 include		 fastcgi_params;
 }
}

Site work is correct, but kACARS_Free don't connect.

Any ideas?

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...