<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[FOP2 Behind Nginx Proxy SSL]]></title><description><![CDATA[<p dir="auto">Hi, any tutorial to connect FOP2 behind nginx as proxy?</p>
<p dir="auto">This is my setup:</p>
<p dir="auto">server {<br />
listen 80;<br />
server_name <a href="http://xxx.com" rel="nofollow ugc">xxx.com</a>;<br />
return 301 https://$server_name$request_uri;<br />
}</p>
<p dir="auto">server {<br />
listen 443 ssl;<br />
server_name <a href="http://xxx.com" rel="nofollow ugc">xxx.com</a>;<br />
include /etc/nginx/mime.types;<br />
root /var/www/fop2;<br />
index index.php index.html index.htm;</p>
<pre><code>ssl_certificate /etc/ssl/certs/bundle.pem;
ssl_certificate_key /etc/ssl/certs/bundle.pem;

location / {
    try_files $uri $uri/ /index.php?$query_string;
}

location ~ \.php$ {
    include fastcgi_params;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
</code></pre>
<p dir="auto">}</p>
<p dir="auto">and I have setup the SSL in fop2.cfg too :</p>
<p dir="auto">ssl_certificate_file=/etc/ssl/certs/xxx.crt<br />
ssl_certificate_key_file=/etc/certs/xxx.key</p>
<p dir="auto">I can open the web but websocket seems error wss://xxx.com:44445</p>
<p dir="auto">Logs from F12</p>
<p dir="auto">[1709112480782]  setvar variable context ok (ok), but not authorized? What to do ?<br />
VM2479:1 [1709112481725]  1<br />
VM2479:1 [1709112483352]  2<br />
VM2479:1 [1709112485358]  3<br />
VM2479:1 [1709112487361]  4<br />
VM2479:1 [1709112489356]  5<br />
VM2479:1 [1709112490360]  6<br />
VM2479:1 [1709112490361]  connectxml<br />
VM2479:1 [1709112490361]  intento conectar web socket en wss://xxx.com:4445<br />
VM2479:1 [1709112490362]  Websocket is not yet ready, wait for it instead of reattempt</p>
]]></description><link>http://localhost:4567/topic/3236/fop2-behind-nginx-proxy-ssl</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 11:56:43 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/3236.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Feb 2024 09:35:53 GMT</pubDate><ttl>60</ttl></channel></rss>