You can see that adding that ServerAlias added the line: '''ServerAlias wiki.tommy.homedns.org'''
= Hosting Single or Multiple Webapps (Alternative)=
You can change the port that most web apps operate, specifically port 80. You can use any port not already in use by the OS or your HDA. To verify what ports are already in use, do (as ''root'' user):
nmap -sT -O localhost
Once you have chosen the port to use, follow the steps below (using [https://www.amahi.org/apps/adminer Adminer] as an example and port 8081):
* Edit ''/etc/httpd/conf.d/####-adminer.conf'' and add the following line. Also change 80 to 8081 in the VirtualHost line:
Listen 8081
<VirtualHost *:8081>
* Update the ServerAlias:
ServerAlias adminer.amahi.net:8081
* Add right below ServerAlias to use the Amahi dynamic DNS:
ServerAlias username.yourhda.com:8081
* Restart web server:
systemctl restart httpd
You will need to port forward 8081 on the router of course to access from outside the network. Anytime you access the app on your network internally, you will need to enter <nowiki>http://adminer.amahi.net:8081</nowiki>.
:'''NOTE:''' ''amahi.net'' part of the URL may be different depending on the domain you use for your HDA.
To change the app back to using port 80, remove the ''Listen'' line and change the port to ''80''. I would not recommend you try this with apps that do not use port 80. For example, an application that uses the web server proxy will likely not work with this method.
= Hosting a Website =