*To access the HDA itself from outside the network using VPN, check out the [[Adito]] application, available to install through the HDA. Adito enables you to access the HDA, and all applications and folders, using just your free username.yourhda.com webaddress.
You So you want to run a web server in your Amahi server and make it visible from the web outside your home.
<div style="border: 1px solid #B66; padding: .5em 1em; color: #000; background-color: #FEE; margin: 3px 3px 1em 3px;">
</div>
With that out of the way, to == Requirements == To host your own web site you need the following:
* 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 the app you want to make accessible outside, let's say, '''yourwebappname'''
== Hosting a single Webapp == What you need to do (as root) is find for the apps conf file then edit the conf file for the app:
su
ServerAlias username.yourhda.com
You can add more server aliases if you want to access the app under those names(for example: ServerAlias myphotos.DomainName.com). Once you are satisfied with the server aliases, you may save and quit nano by following these steps in Windows:
ctrl X
And you are done, enjoy your website.
== Hosting multiple Webapps ==
''If you wish to have access to multiple webapps, described below is one way to accomplish this:''
# obtain a domain name (i.e., via godaddy.com) --for example yourdomain.com
# for each web app you wish to have access to, establish a CNAME or subdomain--for example something.yourdomain.com---and point it to username.yourhda.com (for example see http://help.godaddy.com/article/679 )
# edit the webapp .conf file (see above) to match the CNAME/subdomain you just established by adding ServerAlias something.yourdomain.com
# don't forget to restart the server each time you edit a .conf file.
:#For example, you could create the subdomain/CNAME: address.yourdomain.com for the AddressBook webapp---point that subdomain to: username.yourhda.com---in the AddressBook .conf file add: ServerAlias address.yourdomain.com---restart the server---you are done, enjoy using multiple webapps!
== FAQs FAQ ==
* Q: Do i need to do anything for <code>username.yourhda.com</code> to work?