Changes

From Amahi Wiki
Jump to: navigation, search
194 bytes added ,  23:52, 19 April 2015
ls /etc/httpd/conf.d
 :: '''NOTE:''' If you get a message like ''"ls: cannot access /etc/httpd/conf.d: No such file or directory"'', simply use the following to manually change directories: cd /etc cd /httpd cd /conf.d
ls
nano /etc/httpd/conf.d/10##-yourwebappname.conf
 :: '''NOTE:''' Depending on the options you chose during installation, you may not have the "nano" text editor installed. If that is the case, you will receive an error message. Instead, substitute "vi" for "nano" to use a different text editor. [http://www.cs.colostate.edu/helpdocs/vi.html Here are the commands to use the "vi" editor.]
Your conf file should look something like this at the top of the page:
You can see that adding that ServerAlias added the line: '''ServerAlias wiki.tommy.homedns.org'''
= Hosting Single/Multiple Webapps (AlternativeChange Port)=This is an alternate method for hosting single or multiple web apps using the builtin Amahi dynamic DNS (''username.yourhda.com''). This will likely work with other dynamic DNS providers. 
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
systemctl restart httpd
You will need to Forward 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 navigate 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'' in ''/etc/httpd/conf.d/####-adminer.conf''.  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 most certianly not work with this method.
= Hosting a Website =
12,424

edits