Is this possible? accessing apps through yourhda.com

gamer0core
Posts: 1
Joined: Sun Jan 17, 2010 2:45 am

Re: Is this possible? accessing apps through yourhda.com

Postby gamer0core » Wed Jan 20, 2010 11:48 pm

I had exactly the same question: how would I access multiple webapps installed on my HDA from internet? I see that cpg is saying that there is no way of knowing what applications the user will install on their machines so it is quite difficult to implement into HDA setup. That is true. But...

I have another suggestion and I know it can be done (but maybe quite difficult). There is a possibility to make apache run different webapps on different ports (internal). For example, main HDA setup page is run on host port 80; then Jinzora can be run on host port 3131, then Ajaxplorer - on port 4141 and etc. Then all we have to do is to forward corresponding ports in our routers to the ports where applications are hosted - and that's it!

This approach will be much easier to automate into HDA setup, since a drop-down menu with a port choice can be added against each webapp. The only challenge is to figure out how to automate port changing in apache.

mogwai
Posts: 10
Joined: Thu Jan 28, 2010 3:35 pm

Re: Is this possible? accessing apps through yourhda.com

Postby mogwai » Tue Mar 09, 2010 5:29 am

wouldn't just adding an alias into the individual confs work?

Alias /appname /var/hda/web-apps/appname/html

mogwai
Posts: 10
Joined: Thu Jan 28, 2010 3:35 pm

Re: Is this possible? accessing apps through yourhda.com

Postby mogwai » Sat Mar 20, 2010 12:52 pm

Sort of works... using the guide mentioned earlier works too, though you need a domain of your own which allows you to add cname records... for example I have

ajax.mydomain.com links to ajaXplorer
eyeos.mydomain.com links to eyeos
transmission.mydomain.com goes to transmission
webvnc.mydomain.com for webVNC obvious
firefly.mydomain.com to the firefly web front end for fireplay

Just register the cnames you would like to use for the appnames and add that to the serveralias ... see my example config...

VirtualHost *:80>

ServerName ajaxplorer
ServerAlias ajax.mydomain.com
ServerAlias ajaxplorer.myhdadomain.com





DocumentRoot /var/hda/web-apps/ajaxplorer/html

<Directory "/var/hda/web-apps/ajaxplorer/html">
Options Indexes FollowSymLinks +ExecCGI
AddHandler fcgid-script .fcg
AllowOverride AuthConfig
Order allow,deny
Allow from all

</Directory>

ErrorLog /var/hda/web-apps/ajaxplorer/logs/error_log
CustomLog /var/hda/web-apps/ajaxplorer/logs/access_log combined env=!do$

</VirtualHost>

Who is online

Users browsing this forum: No registered users and 4 guests