Skip to content

Instantly share code, notes, and snippets.

@mascarenhas
Created October 24, 2009 14:49
Show Gist options
  • Save mascarenhas/217559 to your computer and use it in GitHub Desktop.
Save mascarenhas/217559 to your computer and use it in GitHub Desktop.
location ~ ^(.+\.lua)(.*)$ {
root html;
fastcgi_pass 127.0.0.1:9100;
fastcgi_index index.lua;
fastcgi_split_path_info ^(.+\.lua)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ ^(.+\.ws)(.*)$ {
root html;
fastcgi_pass 127.0.0.1:9100;
fastcgi_index index.ws;
fastcgi_split_path_info ^(.+\.ws)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment