[SOLVED] Hosting a Webapp

Spency
Posts: 14
Joined: Wed May 29, 2013 12:58 pm

[SOLVED] Hosting a Webapp

Postby Spency » Sun Jun 09, 2013 4:13 am

Hi,

I have two questions regarding hosting webapps.

First one is: Well, I'm trying to make my media wiki app page accessible from the internet. I followed this guide https://wiki.amahi.org/index.php/Hosting_a_website and decided to use spency.yourhda.com as the server alias. When I try to access spency.yourhda.com it just redirects to the local url, which is not available on the internet. This works if I'm local, but on a different network it doesn't work. I've tried it several times.

The only thing from the trouble shooting I can relate to is
Q: I do not see the app I want when accessing myusername.yourhda.com
This may be because the corresponding virtualhost does not have the name you expect on it, or because another virtualhost already has it and happens to take over
... but this seems like an incredibly generalised-horoscopic question.

I also tried this guide https://wiki.amahi.org/index.php/Secure_App_Access but I had the same problem, and it messed up the layout of the app. I don't know what I'm doing wrong wrong.

Secondly: In the first link I mentioned, there are instructions for setting up multiple web apps for hosting using CNAMEs for a domain. Is it also possible to setup a redirect like spency.net/mediawiki as an external address?

Hope this isn't too much information.
Last edited by Spency on Tue Jun 11, 2013 12:31 am, edited 1 time in total.

Spency
Posts: 14
Joined: Wed May 29, 2013 12:58 pm

Re: Hosting a Webapp

Postby Spency » Sun Jun 09, 2013 5:53 am

I tried the CNAME method as well, but it still redirects to the local address.

User avatar
bigfoot65
Project Manager
Posts: 11241
Joined: Mon May 25, 2009 4:31 pm

Re: Hosting a Webapp

Postby bigfoot65 » Sun Jun 09, 2013 6:32 am

The username in username.yourhda.com has to be the name you gave the HDA on amahi.org. So when you log in, you should see a name and all the specifics about your HDA.

Is that the one you are using? If not, you might try that.
ßîgƒσστ65
Applications Manager

Spency
Posts: 14
Joined: Wed May 29, 2013 12:58 pm

Re: Hosting a Webapp

Postby Spency » Sun Jun 09, 2013 6:54 am

Yes that's the one I'm using. My dynamic DNS is spency.yourhda.com my nickname is spency.

User avatar
bigfoot65
Project Manager
Posts: 11241
Joined: Mon May 25, 2009 4:31 pm

Re: Hosting a Webapp

Postby bigfoot65 » Sun Jun 09, 2013 7:13 am

OK, good. The hosting of multiple web apps is not working that I am aware. You can host one app per port at the moment, but that's it. If you use the app, Amahi Web-Apps Proxy app, you might be able to do more.

The app you are trying to access is on port 80? I presume you forwarded the port on your router, correct?
ßîgƒσστ65
Applications Manager

Spency
Posts: 14
Joined: Wed May 29, 2013 12:58 pm

Re: Hosting a Webapp

Postby Spency » Sun Jun 09, 2013 8:08 am

Yes, port 80 and 443 point to the HDA.

All I need really is to host one app, using a sub domain of my domain name.

User avatar
bigfoot65
Project Manager
Posts: 11241
Joined: Mon May 25, 2009 4:31 pm

Re: Hosting a Webapp

Postby bigfoot65 » Sun Jun 09, 2013 8:12 am

Sub domains are not supported in Amahi 6. They will be in 7, but you should be able to access the app via username.yourhda.com for both http and https.
ßîgƒσστ65
Applications Manager

Spency
Posts: 14
Joined: Wed May 29, 2013 12:58 pm

Re: Hosting a Webapp

Postby Spency » Sun Jun 09, 2013 8:24 am

Subdomain (subdomain.mydomain.net) works.
Yourhda (username.yourhda.com) works.
Local address (http://webapp) works.

My problem is: the server redirects to the local address (in this case http://mediawiki) regardless of the URL I put in. While this is fine for use on my home network, I cannot access mediawiki externally.

If I go via the dashboard (click on the mediawiki icon) does the same exact thing. For all apps.

If I go via web-apps proxy, I get a "The requested URL /mediawiki/ was not found on this server." For any app.

User avatar
bigfoot65
Project Manager
Posts: 11241
Joined: Mon May 25, 2009 4:31 pm

Re: Hosting a Webapp

Postby bigfoot65 » Sun Jun 09, 2013 8:27 am

Are you trying to access the external link while inside your network? If so, might try it from a device not connected to your network.

There may be something wrong with the dynamic DNS or maybe a firewall blocking access. Could be almost anything.
ßîgƒσστ65
Applications Manager

User avatar
bigfoot65
Project Manager
Posts: 11241
Joined: Mon May 25, 2009 4:31 pm

Re: Hosting a Webapp

Postby bigfoot65 » Sun Jun 09, 2013 8:32 am

It also could be the port forward is not set up correctly on your router. I had one where it was called virtual host, on another port forward.
ßîgƒσστ65
Applications Manager

Who is online

Users browsing this forum: No registered users and 1 guest