Page 1 of 1

webapp access internal and external

Posted: Thu Jan 24, 2013 7:26 am
by msstatecoletrain
I've been using Amahi for over a year and love it! I recently started using OwnCloud and love it also!!
I have successfully opened this webapp to the outside world with SSL using the wiki:
http://wiki.amahi.org/index.php/Access_HDA_over_SSL
http://wiki.amahi.org/index.php/Hosting_a_website
http://wiki.amahi.org/index.php/Secure_App_Access

I can automatically sync and access everything external to my network via https://username.yourhda.com, but have lost the ability to use it internally.
I feel like the solution is pretty simple like adding something to one of the virtual host files but I don't want to screw something up.
I would like to use the same address(yourhda.com) so my phone and computer can sync both away and at home.
Thanks!

Re: webapp access internal and external

Posted: Thu Jan 24, 2013 2:59 pm
by bigfoot65
Following those tutorials often cause issues. I had done them once, then started having problems. If you want to access apps outside your network, best not to use that guidance.

Follow the other one for web apps or use the Amahi Web-Apps Proxy app:

https://www.amahi.org/apps/amahi-web-apps-proxy

We are working on a better solution for subdomains and such in Amahi 7. It will be available hopefully in the next several weeks on Fedora 18 and possibly Ubuntu 12.04.1.

Re: webapp access internal and external

Posted: Thu Jan 24, 2013 4:13 pm
by msstatecoletrain
well that would have been nice to see before I went through all that trouble and its certainly not an ideal solution to the current problem.
I guess when I searched the forums and google, all I found was those wiki's.
I only need one app really, the owncloud app. Which currently works outside my network.

1. Is there a way to revert all those changes besides manually? (no file backups)
2. Does the web app proxy provide https? There doesn't seem to be much information online.
3. I'm currently on Amahi 6.1 with fedora 14? Will upgrading to Amahi 7 require a full reinstall?

Thanks for your help!

Re: webapp access internal and external

Posted: Thu Jan 24, 2013 6:30 pm
by bigfoot65
well that would have been nice to see before I went through all that trouble and its certainly not an ideal solution to the current problem.
Yes, unfortunately not all those instructions in the wiki are well tested.
1. Is there a way to revert all those changes besides manually? (no file backups)
No, you will have to manually undo them. Much of the guidance in the wiki are user contributions. They may work for certain conditions, but not all. We don't have the resources to test many of them. They are do at your own risk.
2. Does the web app proxy provide https? There doesn't seem to be much information online.
Not that I am aware.
3. I'm currently on Amahi 6.1 with fedora 14? Will upgrading to Amahi 7 require a full reinstall?
Yes, there is no upgrade path from 14 to 18. It's difficult to upgrade one version vs four. This is one big feature we have yet to figure out is how to upgrade with reinstall. It's just a big animal that we have not been able to tackle.

Re: webapp access internal and external

Posted: Thu Jan 24, 2013 9:54 pm
by msstatecoletrain
Well I am able to access the app internally again...kinda.
When adding the SSL and hosting the webapp to the internet, I removed a server alias.

I added this back to the .conf files:

Code: Select all

ServerAlias owncloud.home.com
Ideally, I would like to be able to just use username.yourhda.com internally also.
I'm looking into some DNS redirects or something but nothing seems to be really what I'm looking for.
Any suggestions??