Comments (3)
Hello @zakabluk, you can try something like this :
location / {
set $auth_basic Restricted;
if ($host = www1) {
proxy_pass http://www1;
}
if ($host = www2) {
proxy_pass http://www2;
}
if ($host = www3) {
proxy_pass http://www3;
set $auth_basic off;
}
auth_basic $auth_basic;
}
from bunkerweb.
@bunkerity yes it's help me. And little question for future. Can I use like this method for set separate options
for two sever names
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 310s;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Origin "${scheme}://${proxy_host}";
and another set for therd server name?
from bunkerweb.
Yes it should work with this method. Glad it helped you. Can we close this issue ?
from bunkerweb.
Related Issues (20)
- [BUG] configs - cannot add multiple file on the same service_id HOT 3
- [BUG] K8S - Controller throws exception on reading ingress event in Managed K8S HOT 2
- [BUG] WebSocket Configuration - AutoConf HOT 2
- [BUG] upgrade 1.5.5 -> 1.5.6 SQL Errors HOT 9
- [BUG] Infinite page loading when using Chrome browser in developer mode HOT 3
- [BUG] exception while running mmdb-country.py HOT 2
- [BUG] changes are not saved HOT 6
- 1.5.6 virustotal plugin error HOT 1
- [license] is it ok to redistribute the maxmind mmdb files? HOT 2
- [FEATURE] Ability to export and import config via the Web UI
- [BUG] scheduler error _getdefaultlocale HOT 5
- [BUG] Scheduler Crash on Reloading Plugins HOT 3
- [BUG] Get empty page after reload page with challenge HOT 4
- [BUG] After the first unsuccessful attempt to complete the captcha challenge, the remaining attempts become failures HOT 2
- [DOC] Web-UI K8S "Advanced Installation" bunkerweb-ui isn't using correct serviceaccount HOT 6
- [FEATURE] allow to modify nginx default buffer setting to handle "upstream sent too big header" HOT 1
- [BUG] IPs in WHITELIST_IP gets banned for Bad Behavior in the middle of the night HOT 10
- [BUG] bunkerweb.service reported that there is missing configuration file HOT 6
- [BUG] whitelist bypass not effective HOT 7
- [FEATURE] K8S - Ability to ignore/use Ingresses based on IngressClass HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bunkerweb.