• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • 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😛ort;
    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😛ort" "https://b.example.com😛ort";
    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