i want to add a subdomain [..] to a URL generated by the Laravel app (Is not a server folder)
I’m not sure I understand what that means—will the same Laravel app work correctly if it is accessed through the new subdomain (i.e. Sub-Domain Routing)?
If so, all you need to do is add DNS record to map the subdomain to your Droplet’s IP address and configure your webserver to serve the same app on the subdomain.
First, add a CNAME record that points to
@ which is the root domain (reservate.co):
example CNAME @
Then, edit your nginx configuration adding the new subdomain to your existing server block:
server_name reservate.co www.reservate.co example.reservate.co;
Finally, restart nginx so that the changes take effect:
sudo service nginx restart