-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Labels
questionFurther information is requestedFurther information is requested
Description
I thought in the docs it was not very clear the difference between global and *, but i've found a non-intuitive difference.
* {
log "foo.log"
}
example.localhost:4444 {
proxy "192.168.1.1:443"
}
This fails to spawn the server when run as a normal user (non-root). This works:
globals {
log "foo.log"
}
example.localhost:4444 {
proxy "192.168.1.1:443"
}
That's because it tries to bind to 80/443 when using * scope for config, despite no vhost using that port. For example, this also works:
* {
default_https_port 4443
default_http_port 8080
log "foo.log"
}
example.localhost:4444 {
proxy "192.168.1.1:443"
}
I don't think it's exactly wrong behavior, but it's certainly counterintuitive and i didn't understand that from reading the docs, which use a lot of example with a * block.
hongquan and DorianNiemiecSVRJS
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested