Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

skoobi's avatar
Level 13

Redirects in laravel forge issue

Hi.

Im trying to redirect an old domain to the new domain through the nginx config, but it doesn't seem to work. I get ::

nginx: [warn] conflicting server name "my_domain.uk" on 0.0.0.0:443, ignored
nginx: [warn] conflicting server name "my_domain.uk" on [::]:443, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

Here is the config::

server {
    listen 80;
    listen [::]:80;
    server_name .my_domain.ie;
    rewrite ^/(.*) https://www.my_domain.uk/ permanent;
}

Any ideas on how to resolve this? Both the sites are on the same server, so not sure if that's got anything to do with it or not!

Many thanks

0 likes
0 replies

Please or to participate in this conversation.