I try to configure a vhost for my vdi (citrix) configuration. The conf makes me crazy! I must use ssl_preread to get working. Actually, my configuration of NGINX is made over CWP. I have a subdmain portal.xxx.net with a reverse to the citrix gateway, located in /etc/nginx/conf.d/vhosts/portal.xxx.conf. When I add ssl_preread=on; I have error like: directive is not allowed here After some research, I see that I must use "stream" directive. I add the stream configuration into the vhost configuration but same error: directive is not allowed here. I see that I must add the stream conf outside the http conf, but i'm using a vhost... Cannot do it in the nginx.conf. I'm completly lost...
Thx for your help
nginx.conf
for almost any case.