I can't make cups run from Internet using nginx. Always responds "Bad request". Can somebody help me? When I use port forward in the router I can access cups web interface, but only using WAN IP, any hostname works. I believe it's necessary change "Location /" value in cups conf file.
I've tested two options :
Fisrt access cups web interface, but the imagens isn't loaded and only home interface is accessible. Admin and others locations responds "Bad Request".
Second, only "Bad resquest"
Thanks and sorry for bad english!
I've tested two options :
Fisrt access cups web interface, but the imagens isn't loaded and only home interface is accessible. Admin and others locations responds "Bad Request".
Code:
location /printer {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_buffering off;
access_log off;
proxy_pass http://127.0.0.1:631/;
Second, only "Bad resquest"
Code:
location /printer {
proxy_pass http://127.0.0.1:631;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Thanks and sorry for bad english!