laravel - how to access my web app in apache-ubuntu with custom domain name in a LAN? -
i have developed web app using laravel & apache 2.4 in ubuntu 15.04 inside vmware. have configured ip address of ubuntu static 192.168.1.250. within ubuntu can access web app ip 127.0.0.1 or localhost. , networked devices, can access using ubuntu's ip address 192.168.1.250. now, want access web app using domain name networked devices instead of ip address. think need install , configure dns server in ubuntu along apache. so, installed bind dns , tried configure failed. so, if can done bind, wondering how? if not, may way? thank !
you can create tunnel local environment using ngrok give temporary address (to keep address static have use pro features a.k.a paid features)
follow steps:
- download ngrok , unzip ngrok
- open cmd / terminal , navigate ngrok location
- type following command:
ngrok http {your_localhost_server_port_number}
it create tunnel need point virtual host edit local server virtual host , add alias / server name following:
note: if have 1 app running on local server step optional
*.ngrok.io
- now restart local server load our new configuration
- now able see localhost site online using ngrok provided url.
- enjoy!
Comments
Post a Comment