CLOSED: Subversion outside the network

nixel
Posts: 26
Joined: Sat Oct 22, 2016 10:19 am

CLOSED: Subversion outside the network

Postby nixel » Wed Oct 26, 2016 6:50 pm

Hello again

Now I have problem accessing subversion web-app (or whatever it actually is) from outside the network.

I followed the steps here:
https://wiki.amahi.org/index.php/Hostin ... gle_Webapp

Specifically the "Hosting multiple web apps".

Using a .ru domain I own (let's call it mydomain.ru), I created a subdomain called svn.dev.mydomain.ru , CMAKE pointing to myname.yourhda.com

I updated the 100#-apachesvn.conf file, adding a line  
ServerAlias svn.dev.mydomain.ru

I forwarded ports 80 and 443 to HDA's ip.

But when I open svn.dev.mydomain.ru in browser, it redirects me just to myname.yourhda.com and NOT the subversion app.

What did I do wrong?
Thanks

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

Re: Subversion outside the network

Postby bigfoot65 » Thu Oct 27, 2016 4:29 am

I updated the 100#-apachesvn.conf file, adding a line
ServerAlias svn.dev.mydomain.ru
Did you add this line as well:

Code: Select all

ServerAlias username.yourhda.com
It's required and this method only works with a single web app.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

nixel
Posts: 26
Joined: Sat Oct 22, 2016 10:19 am

Re: Subversion outside the network

Postby nixel » Thu Oct 27, 2016 6:03 am

Wait, no, I followed the steps described in
"Hosting Multiple Webapps"

  1. obtain a domain name (i.e., via godaddy.com) --for example yourdomain.com - I have a domain, which I pay for monthly and host my site on, registered on reg.ru
  2. 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 - I did this too. I created subdomain entries for each and pointed them to myname.yourhda.com
  3. edit the webapp .conf file (see above) to match the CNAME/subdomain you just established by adding ServerAlias something.yourdomain.com - did this too, added a line pointing to appname.mydomain.ru
  4. don't forget to restart the server each time you edit a .conf file. - and did it twice
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!

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

Re: Subversion outside the network

Postby bigfoot65 » Thu Oct 27, 2016 6:45 am

Sorry, I am not very familiar with that guidance.

I did something similar with DreamHost which might be helpful.

Unfortunately I can't access the document until I get home from work. I will post it then.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

nixel
Posts: 26
Joined: Sat Oct 22, 2016 10:19 am

Re: Subversion outside the network

Postby nixel » Thu Oct 27, 2016 3:29 pm

Ok, thanks, looking forward to that.

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

Re: Subversion outside the network

Postby bigfoot65 » Thu Oct 27, 2016 5:16 pm

This is what I did to access apps outside my network using a hosting provider:
In ####-app.conf add:
ServerAlias app.domain.com

Add on Dynamic DNS Host:
CNAME web site = *.domain.com
A Record = to your ISP IP Address
CNAME = hdaname.yourhda.com

Forward port 80 on router to HDA
Replace the items in BOLD with your info. Of course app should be the app name as it is in Amahi (i.e. svn) I was then able to access apps with no issues.

Hope that helps.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

nixel
Posts: 26
Joined: Sat Oct 22, 2016 10:19 am

Re: Subversion outside the network

Postby nixel » Thu Oct 27, 2016 5:42 pm

Oh, wait. Hm, weird. Right now I booted up the Amahi server, and tried to go to my svn.dev.domain.ru address, and it redirected me to app.lan address, so it worked. 

Then I tried the same from my phone, using 4G network, so it's not lan. But it also redirected me to app.lan, which is obviously not the correct address for outside the network...

And even if I get it to redirect me to ip:port, the port is 80, how will Amahi realize which app to launch?
Also will SVN work like that for other people? The tortoise svn client I mean?

Also, I can't place two records (A and CNAME) for one subdomain.

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

Re: Subversion outside the network

Postby bigfoot65 » Thu Oct 27, 2016 5:55 pm

And even if I get it to redirect me to ip:port, the port is 80, how will Amahi realize which app to launch?
Also will SVN work like that for other people? The tortoise svn client I mean?
Sorry, but this is starting to get out of my realm of experience. I cannot help much in the this area.

Based on your requirements, a lot of the capabilities you seek are not out-of-the-box with Amahi. It is designed to be a basic home server, not an advanced development platform. While it might be doable, we cannot provide much support. This likely would require advanced skills and manual configuration.

Honestly, Amahi may not be the ideal choice for you. Setting up a bare based server might be a simpler and more acceptable solution.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

nixel
Posts: 26
Joined: Sat Oct 22, 2016 10:19 am

Re: Subversion outside the network

Postby nixel » Fri Oct 28, 2016 6:54 am

Well, maybe you're right.

I guess to get what I need I'll have to:
  • Install bare Fedora\Ubuntu distribution.
  • Install some DNS server on it, manually configurable
  • Install subsonic, plex (already did it on fedora alongside amahi, and it actually works)
  • SVN repo, manually
  • Samba server
  • ownCloud
  • other stuff
What other benefits does Amahi have, other than just setting up Apache, SMB, DHCP and DNS servers, and having a nice in theory web-app concept and a bit simplified hdd mounting?Is there anything stopping me from just running Amahi alongside manually installed servers?

Thanks.

Found where to edit DNS manually, it's in web-interface actually, under Network - DNS Aliases.
I still think that running Amahi+Fedora can be a thing, using Amahi only for what it's good at, and running all other servers separately...

Can anyone explain to me how can I redirect DNS to specific ports?
Ill make a separate thread for that actuall if no one minds...

nixel
Posts: 26
Joined: Sat Oct 22, 2016 10:19 am

Re: Subversion outside the network

Postby nixel » Mon Oct 31, 2016 6:28 pm

Ok, sorry to say, but I decided not to use Amahi.
Instead I just used Ubuntu Desktop, and installed everything I need there. I was also able to succesfully use my domain and redirect one of it's subdomains to my site, using domain.com/appName instead of subdomains.

But I still think that Amahi is great for someone who just wants to set up a NAS system with a little extra. 
Cheers, and keep up the good work.

Who is online

Users browsing this forum: No registered users and 18 guests