Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Plugins
  3. FOP2 Behind Nginx Proxy SSL

FOP2 Behind Nginx Proxy SSL

Scheduled Pinned Locked Moved Plugins
1 Posts 1 Posters 239 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    R
    ravhi
    wrote on last edited by
    #1

    Hi, any tutorial to connect FOP2 behind nginx as proxy?

    This is my setup:

    server {
    listen 80;
    server_name xxx.com;
    return 301 https://$server_name$request_uri;
    }

    server {
    listen 443 ssl;
    server_name xxx.com;
    include /etc/nginx/mime.types;
    root /var/www/fop2;
    index index.php index.html index.htm;

    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;
    }
    

    }

    and I have setup the SSL in fop2.cfg too :

    ssl_certificate_file=/etc/ssl/certs/xxx.crt
    ssl_certificate_key_file=/etc/certs/xxx.key

    I can open the web but websocket seems error wss://xxx.com:44445

    Logs from F12

    [1709112480782] setvar variable context ok (ok), but not authorized? What to do ?
    VM2479:1 [1709112481725] 1
    VM2479:1 [1709112483352] 2
    VM2479:1 [1709112485358] 3
    VM2479:1 [1709112487361] 4
    VM2479:1 [1709112489356] 5
    VM2479:1 [1709112490360] 6
    VM2479:1 [1709112490361] connectxml
    VM2479:1 [1709112490361] intento conectar web socket en wss://xxx.com:4445
    VM2479:1 [1709112490362] Websocket is not yet ready, wait for it instead of reattempt

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    Powered by NodeBB Contributors
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups