Did you ever get anywhere with this?
Not being able to use both www and non-www by default can sometimes be a problem.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
inside nginx/forge-conf/be106.net/before/redirect.conf file there is this simple config:
server {
listen 80;
listen [::]:80;
server_name www.my-domain.net;
return 301 $scheme://my-domain.net$request_uri;
}
is there a simple way of removing this without altering the file itself(as it look like bad idea).
or removing the forge default line that including this config as it also bad idea
# FORGE CONFIG (DOT NOT REMOVE!)
include forge-conf/be106.net/before/*;
I want the site to be accessible from different domains also
Please or to participate in this conversation.