0
votes
0answers
95 views

Nginx redirect to another domain if static file not found or cache/gzip

I had this code in my config file, and it worked: try_files $uri @redirect-to-main; location @redirect-to-main { rewrite ^ https://main.com$uri redirect; } Now I need to add cache/gzip ...
3
votes
2answers
10k views

service static files under nginx & HTTP-Authentication

I have an app deployed in testing mode on a server. Access to it has been restricted to a select group of users via HTTP-Authentication. That works fine. The problem is that if I serve static files ...
3
votes
2answers
2k views

How can I programmatically change a static IP address?

I have a box running windows which I want to assign a static IP to but give remote access to change that IP (without giving complete access to the windows instllation). I want to run a little app or ...