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

YCHDev's avatar

Notes regarding issues faced when updating site domain

First off, this is great, thanks -> https://medium.com/@taylorotwell/forge-update-site-domains-bb4e000e33bd

That being said, I tried it, and after DNS propagated, was able to re-gen SSL.

I also use Envoyer, but my first deploy after the domain change failed. I had to manually re-create most of the symlinks, as they were still pointing to the old site, then deploying from Envoyer worked.

Lastly I had edit /etc/nginx/sites-available/new_site as follows, because not all of the config was updated by Forge:

# FORGE CONFIG (DOT NOT REMOVE!)
include forge-conf/**THIS WAS CORRECT**/before/*;

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name **THIS WAS CORRECT**;
    root /home/forge/**THIS WAS NOT CORRECT**/current/public;

# service nginx restart

Good to go.

Cheers!

0 likes
0 replies

Please or to participate in this conversation.