Will this app work on Amahi

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

Re: Will this app work on Amahi

Postby bigfoot65 » Sat May 04, 2013 8:46 pm

In the web app .conf file, change the lines after <b><Directlry</b> to:

Code: Select all

Options Indexes FollowSymLinks +ExecCGI AddHandler fcgid-script .fcg AllowOverride FileInfo Limit Options Indexes Order allow,deny Allow from all
Then restart the web server. Next you will need to create a .htaccess file in the web app html directory and add this text:

Code: Select all

RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule (.*) http://%{HTTP_HOST}:8080 [R,L]
That should allow you to access the app as you desire. If you can provide the documented install steps, we can create an Amahi one-click app for this one.
ßîgƒσστ65
Applications Manager

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

rdagijones
Posts: 274
Joined: Thu Jan 26, 2012 7:56 am

Re: Will this app work on Amahi

Postby rdagijones » Sun May 05, 2013 5:22 pm

httpd error
Starting httpd: Syntax error on line 23 of /etc/httpd/conf.d/1010-guacamole.conf:
AllowOverride not allowed here

rdagijones
Posts: 274
Joined: Thu Jan 26, 2012 7:56 am

Re: Will this app work on Amahi

Postby rdagijones » Sun May 05, 2013 5:35 pm

I should read better. The web app .conf information goes between <Directory> and </Directory>
Got that working.

Now I am getting
Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.17 (Fedora) Server at 192.168.0.12 Port 80
when I put the ip address of the server into a browser on a computer in the network that is not the server.

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

Re: Will this app work on Amahi

Postby bigfoot65 » Sun May 05, 2013 6:00 pm

Ensure the .htaccess file is owned by apache:users.
ßîgƒσστ65
Applications Manager

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

rdagijones
Posts: 274
Joined: Thu Jan 26, 2012 7:56 am

Re: Will this app work on Amahi

Postby rdagijones » Sun May 05, 2013 7:30 pm

Changed .htaccess to apache:users and even changed read/write permissions and still get the same error.

Also getting the following errors when trying to login to Guacamole (I can see the login screen. These error happen when I try to get in.)

From server
Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]
From other computer
NETWORK_ERR: XMLHttpRequest Exception 101
Could this be some sort of clash between httpd and tomcat6 or guacd (guacamole's service)?

Code: Select all

service httpd restart
gives
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName

Code: Select all

service guacd restart
gives
Starting guacd: guacd[5007]: INFO: Guacamole proxy daemon (guacd) version 0.7.0
guacd[5007]: INFO: Unable to bind socket to host ::1, port 4822: Invalid argument
guacd[5007]: INFO: Successfully bound socket to host 127.0.0.1, port 4822
guacd[5007]: INFO: Exiting and passing control to PID 5008
SUCCESS
guacd[5008]: INFO: Exiting and passing control to PID 5009

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

Re: Will this app work on Amahi

Postby bigfoot65 » Mon May 06, 2013 4:44 am

Two things, ensure mod_ssl is installed. As root user:

Code: Select all

yum install mod_ssl
Secondly, when you see the unable to bind to a port with Guacamole, that typically requires a restart of the HDA to correct.

The httpd warning is normal, nothing to worry about. Did you have the same issue when accessing it before adding the .htaccess?

I doubt there is a problem between tomcat and apache, but you could try putting Guacamole on a different port. I would recommend staying away from 80, 8080, and 443. Those are reserved for apache and can cause problems.
ßîgƒσστ65
Applications Manager

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

rdagijones
Posts: 274
Joined: Thu Jan 26, 2012 7:56 am

Re: Will this app work on Amahi

Postby rdagijones » Mon May 06, 2013 3:26 pm

OK, for some reason my server at home started working. (I had restarted it several times and restarted the services as well. Who knows?)

Now I am setting up the Amahi at work with Guacamole. The practice will help me write the wiki.
Problem:
When I browse to guacamole.myserver.com immediately 8080 is added to the end of the address and the page is blank. Going to 127.0.0.1:8080/guacamole comes up fine if I am on the server itself.

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

Re: Will this app work on Amahi

Postby bigfoot65 » Mon May 06, 2013 3:49 pm

Change %{HTTP_HOST} to localhost in .htaccess file.

[ Post made via Android ] Image
ßîgƒσστ65
Applications Manager

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

rdagijones
Posts: 274
Joined: Thu Jan 26, 2012 7:56 am

Re: Will this app work on Amahi

Postby rdagijones » Tue May 07, 2013 2:30 pm

Reinstalled everything for Guacamole from the beginning on my home server. Still getting the same warnings when I try to login using guacamole.myserver.com

From server's web browser
Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]
From another computer
NETWORK_ERR: XMLHttpRequest Exception 101
If I go on the server and use http://127.0.0.1:8080/guacamole things work just fine.

Here is the .htaccess file
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule (.*) http://localhost:8080 [R,L]
Edit: Once I cleared the browser cache on the other computer on the network Guacamole would not come up at all.

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

Re: Will this app work on Amahi

Postby bigfoot65 » Tue May 07, 2013 3:01 pm

Try changing it from localhost to the IP address and try that.
ßîgƒσστ65
Applications Manager

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

Who is online

Users browsing this forum: No registered users and 16 guests