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

cosmicdream's avatar

Deploy laravel application internally

Hi all, how do I deploy a laravel application inside a private network? Right now, I have an Ubuntu 18.04 server setup that is also inside the office. That's the server I'm using. The application can be accessed by people on the same network using the server's private ip: 10.16.27.10

Would it be possible to add a domain name internally so people inside the office can access it with human readable name instead of just numbers? Thank you for your help

0 likes
1 reply
Tray2's avatar

There are multiple ways of doing this.

If it's less than 10 computers connecting you could get away with updating the host files on each and att the ip and hostname of the server there. This is the easiest solution but it's not scalable and will require manual hacking on each computer.

A scalable solution would require setting up an inhouse DNS-server and add the internal hostnames there and have a passthrough on the rest.

This one is a bit old but the theory is still the same http://www.ubuntugeek.com/dns-server-setup-using-bind-in-ubuntu.html

Please or to participate in this conversation.