• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

Unable to login when using nginx reverse proxy

Version
4.0.5
Website URL
https://www.imagehub.cc
PHP version
8.1
Database driver
MySQL
Database version
8.0
Web browser
chrome edge

yhsiao

Chevereto Member
*️⃣ Must open one ticket per issue. If you are experiencing multiple issues don't hesitate to create multiple tickets for each issue.

▶ Reproduction steps
  1. origin website:a.example.com, reverse proxy website:b.example.com
  2. nginx conf:

  3. #PROXY-START/

    location /
    {
    proxy_pass https://a.example.com:port;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header REMOTE-HOST $remote_addr;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_http_version 1.1;
    # proxy_hide_header Upgrade;

    add_header X-Cache $upstream_cache_status;

    #Set Nginx Cache

    proxy_set_header Accept-Encoding "";
    sub_filter "a.example.com:port" "https://b.example.com:port";
    sub_filter_once off;

    set $static_fileYNxzz31H 0;
    if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
    {
    set $static_fileYNxzz31H 1;
    expires 1m;
    }
    if ( $static_fileYNxzz31H = 0 )
    {
    add_header Cache-Control no-cache;
    }
    }

    #PROXY-END/
  4. [Example: Go to /upload and upload a X image]
😢 Unexpected result

User can not login

📃 Error log message

User can not login
 
Back
Top