Answer the question
In order to leave comments, you need to log in
How to call phantomjs directly from nginx?
Hello everyone,
I need advice, is it possible and how to configure nginx to solve such a problem -
for each request like www.domain.ru/path/?pdf=12345.pdf, call phantomjs with parameters -
phantomjs /opt/www/modules/pdf/rasterize.js
'http://www.domain.ru/path/?pdf=12345.pdf' /opt/www/files/12345.pdf A4
Answer the question
In order to leave comments, you need to log in
Choose pearl or lua - and go ahead, any magic you want and everything is inside nginx.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question