Unable to use bcrypt with nginx 1.12.2 on CentOS 74

2018-04-29 Thread blason
Hi Nginx Team, I am unable to use bcrypt function on CentOS 7.4 with nginx version 1.12.2. Any idea what could be the reason? This is working fine with MD5 nginx -v nginx version: nginx/1.12.2 CentOS Linux release 7.4.1708 (Core) nginx version: nginx/1.12.2 built by gcc 4.8.5 20150623 (Red Hat

Re: nginx + php-fpm ERROR 'FastCGI sent in stderr: "Primary script unknown"' for 2nd app (WP) in a subdir. Main site is OK.

2018-04-29 Thread aclion
This config seems to get me further, or maybe just different location / { index index.php; try_files $uri $uri/ /index.php?q=$uri&$args; } location ^~ /blog { alias /srv/www/test/wp/public/blog; index index.ph

nginx + php-fpm ERROR 'FastCGI sent in stderr: "Primary script unknown"' for 2nd app (WP) in a subdir. Main site is OK.

2018-04-29 Thread aclion
Hi, I'm trying to set up WordPress in a subdir on an Nginx+PHPFPM setup. I'm running nginx/1.14.0 PHP 7.2.4-dev (fpm-fcgi) wordpress/4.9.5 The skeleton I have so far is tree -L 3 . . ├── includes │   └── front.inc ├── public │   ├── css

Re: Flask app with virtual Python environment in Unit 1.1 ?

2018-04-29 Thread Valentin V. Bartenev
On Sunday, 29 April 2018 19:02:47 MSK Ralph Seichter wrote: [..] > My application can now be called via NGINX -> NGINX Unit -> App, which > is exactly what wanted. It also requires certain environment variables > to be set, and I am now wondering how to pass these on? I found the > enhancement requ

Re: Flask app with virtual Python environment in Unit 1.1 ?

2018-04-29 Thread Ralph Seichter
On 29.04.18 17:06, Valentin V. Bartenev wrote: > You can set a path to Python virtual environment using the "home" > parameter of application object. Ah, that was the missing piece, thank you. > Please also note that your application callable need to be named > "application" (not "app"). Alrigh

Re: Flask app with virtual Python environment in Unit 1.1 ?

2018-04-29 Thread Valentin V. Bartenev
On Sunday, 29 April 2018 17:10:08 MSK Ralph Seichter wrote: [..] > Here's my minimal wsgi.py: > > # /var/www/myapp/wsgi.py > import mypackage > if __name__ == "__main__": > mypackage.run() > > The Flask application object is defined in mypackage.__init__.py: > > app = Flask(__name_

Flask app with virtual Python environment in Unit 1.1 ?

2018-04-29 Thread Ralph Seichter
Hello, I have built a Flask application with a Python 3.6 virtual environment which I would like to run using NGINX Unit 1.1 instead of the usual "source venv/bin/activate; flask run". When I try to apply the following configuration { "listeners": { "*:5080": { "application":

Re: duplicate MIME type "text/html"

2018-04-29 Thread Friscia, Michael
thank you, I must have read that 5 times and totally missed "in addition to" each time! ___ Michael Friscia Office of Communications Yale School of Medicine (203) 737-7932 – office (203) 931-5381 – mobile http://web.yale.edu _

Re: NGINX non-HTTP port forwarding from internet to private LAN preserving the client IP

2018-04-29 Thread Mauro Tridici
Dear Francis, thank you very much for your detailed explanation. I will investigate in order to detect the right way (and tool) to rich my goal thinking about your words. Have a great day. Regards, Mauro Il dom 29 apr 2018 11:09 Francis Daly ha scritto: > On Fri, Apr 27, 2018 at 01:41:26AM +

Re: NGINX non-HTTP port forwarding from internet to private LAN preserving the client IP

2018-04-29 Thread Francis Daly
On Fri, Apr 27, 2018 at 01:41:26AM +0200, Mauro Tridici wrote: Hi there, > So, I would like to ask you if I can use NGINX i order to start a port > forwarding from an internet client to a server machine in my private LAN > preserving the client IP. In general, what you want cannot be done (I b

Re: duplicate MIME type "text/html"

2018-04-29 Thread Francis Daly
On Fri, Apr 27, 2018 at 06:04:48PM +, Friscia, Michael wrote: Hi there, > sub_filter_types text/html application/json application/javascript > text/javascript; > > But in the error logs I have this repeating quite a bit: > duplicate MIME type "text/html" in /etc/nginx/conf.d/main-settings.c