Page 1 of 1

SOLVED: New web-apps on Amahi 7

Posted: Mon Aug 05, 2013 6:12 pm
by bellamatt
I'm trying to set up the Amahi DNS to create my own web apps. This used to be an option under the "apps" page - can someone give me an idea of how to do this in Amahi 7? For reference, the app I'm installing is transmission (not the one-click install) but I'm really interested in the general principle rather than specific steps for this particular program. So far I've:
- installed program, tested and running fine on http://hda:9091
- used the "network/DNS aliases" option to create a new alias for this port. I think I might have done this incorrectly as it doesnt seem to have done anything, and all the other aliases listed just refer to 192.168.1.50 (my hda address) not the specific port for that website. The new alias returns a 404 error.
- put a new .conf file in the /etc/httpd/conf.d folder. I used the formatting from the wiki article on packaging web-apps which has been updated for Amahi 7, also compared with conf file for plex one-click app which is working ok.
- added folders in /var/hda/web-apps, with a new .htaccess file. Again, used the plex installation for help with content for .htaccess file. An error_log and access_log were created in the /log folder but they are both empty.

Can someone point me in the right direction? I feel like I must have missed a step, since I can't get the alias to work at all.

Re: New web-apps on Amahi 7

Posted: Mon Aug 05, 2013 7:09 pm
by bigfoot65
Probably will need to modify the .conf file for the app in /etc/httpd/conf.d directory. Add lines below server alias area.

Code: Select all

ProxyPass / http://hda:9091/ ProxyPassReverse / http://hda:9091/
Then restart httpd and it should work. Not sure if there is a feature in Amahi 7 to handle apps such as this through the dashboard.

Re: New web-apps on Amahi 7

Posted: Mon Aug 05, 2013 7:54 pm
by bellamatt
Thanks bigfoot - that's working fine :)

Re: SOLVED: New web-apps on Amahi 7

Posted: Tue Aug 06, 2013 5:09 am
by bigfoot65
Awesome. Would be nice if that could be done in Amahi 7 via the dashboard. I have not expeerimented with Amahi 7 much, so will need to explore more.