Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[issue]How to user Reverse proxy by nginx #1124

Open
wintsa123 opened this issue Apr 25, 2024 · 0 comments
Open

[issue]How to user Reverse proxy by nginx #1124

wintsa123 opened this issue Apr 25, 2024 · 0 comments

Comments

@wintsa123
Copy link

I used nginx for proxy, but unfortunately when I opened the page, it prompted 503

 server {
        listen 443 ssl;
        server_name pdftool.zwgczx.com;
        ssl_certificate C:/Certbot/archive/zwgczx.com/fullchain1.pem; 
        ssl_certificate_key C:/Certbot/archive/zwgczx.com/privkey1.pem;
	
        location / {
            proxy_pass http://192.168.2.227:28080;
	     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        
        
        
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
             proxy_cache hot_cache;              
             proxy_cache_valid 200 206 304 301 302 30m;              
             proxy_cache_valid any 1h;              
              proxy_cache_key $host$uri$is_args$args;              
              proxy_cache_min_uses 3;              
              proxy_cache_lock on;              
              proxy_cache_lock_timeout 3s;              
              proxy_no_cache $cookie_nocache $arg_nocache $arg_comment $arg_expression;
              add_header Cache-status $upstream_cache_status;  
	      proxy_http_version 1.1;
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant