Welcome! Log In Create A New Profile

Advanced

Solving a 500 error

Ian Hobson
October 01, 2013 12:54PM
Hi All,

I have an nginx install with the configuration below.

The server is a linux VM running under Virtual Box on my windows
machine. The website / directory is made available as a sharename using
Samba, which I connect to from Windows, so I can edit the files. I edit
in windows, using familiar tools and then test using a browser, usually
without restarting nginx or init-fastcgi.

This works fine for php files. When I edit one of two javascript files,
the next request for a javascript file fails with a 500 error - even if
the request is not for the changed file.

The version of nginx I am running is 1.2.6 compiled with the long
polling module included.

Does anyone know what is happening?

Thansk,

Ian

This is my server confiig.

server {
server_name coachmaster3.anake.hcs;
listen 80;
fastcgi_read_timeout 300;
index index.php;
root /home/ian/websites/coachmaster3dev/htdocs;
location = / {
rewrite ^ /index.php last;
}
# serve php via fastcgi if it exists
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param CENTRAL_ROOT $document_root;
fastcgi_param RESELLER_ROOT $document_root;
fastcgi_param HTTPS OFF;
}
# serve static files
try_files $uri =404;
# now to configure the long polling
push_store_messages on;
location /publish {
push_publisher;
set $push_channel_id $arg_id;
push_message_timeout 30s;
push_max_message_buffer_length 10;
}
# public long-polling endpoint
location /activity {
push_subscriber;
push_subscriber_concurrency broadcast;
set $push_channel_id $arg_id;
default_type text/plain;
}
}




--
Ian Hobson
31 Sheerwater, Northampton NN3 5HU,
Tel: 01604 513875
Preparing eBooks for Kindle and ePub formats to give the best reader experience.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Solving a 500 error

Ian Hobson October 01, 2013 12:54PM

Re: Solving a 500 error

Jonathan Matthews October 01, 2013 03:38PM

Re: Solving a 500 error

Ian Hobson October 01, 2013 05:58PM

Re: Solving a 500 error

GreenGecko October 01, 2013 06:04PM

Re: Solving a 500 error

Jonathan Matthews October 01, 2013 06:06PM

Re: Solving a 500 error

Maxim Dounin October 02, 2013 06:56AM

Re: Solving a 500 error

itpp2012 October 02, 2013 09:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 193
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready