* Forward a port to your HDA ip address, either for plain insecure http: 80, for https, 443 (advanced users can use other ports). Some routers call this or require a "virtual server"
* Chose a domain name that you own (or your free username.yourhda.com that comes with Amahi). This is how the app will be accessed outside
* Chose the app you want to make accessible outside, let's say, '''yourweabppnameyourwebappname'''
What you need to do (as root) is find for apps conf file then edit the config conf file for the app:
nano ls /etc/httpd/conf.d 10*-'''yourweabppname'''.conf
Then add Find your app .conf file. It will look like 10##-yourwebappname.conf nano /etc/httpd/conf.d/10##-'''yourwebappname'''.conf Your conf file should look something like this at the top of the page: <VirtualHost *:80> ServerName app ServerAlias app.YourDomain.lan Add this (immediately after the ServerName directive):
ServerAlias username.yourhda.com
So it looks like this:
<VirtualHost *:80>
ServerName app
ServerAlias app.YourDomain.lan
ServerAlias username.yourhda.com
You can add more server aliases if you want to access the app under those names. Then save the file, quit the editor (nano in this case) and restart the server: