Page 1 of 2

Web App getting redirected to amahi.org control panel

Posted: Tue Dec 13, 2016 4:32 pm
by lancaster71
I am running Amahi 9 on Fedora 23.

I created a web app and put a basic index.html page in the html folder for testing. When trying to access it with the internal url, the browser has a message in the top left corner: "This site is a repository, please see the Amahi web site at http://www.amahi.org" on an otherwise blank page and then goes to the amahi.org/users control panel page. All the other applications I installed are working fine, like wordpress, phpmyadmin, owncloud9, pydio, etc.

I've tried creating web apps with different names and rebooting. I also didn't see a relevant forum post for this, sorry if I missed that.

the apaste --sysinfo:
http://paste.fedoraproject.org/505981/16714361/ -> https://paste.fedoraproject.org/505981/16714361

Thanks for any help!

Re: Web App getting redirected to amahi.org control panel

Posted: Tue Dec 13, 2016 4:59 pm
by bigfoot65
What guidance did you follow for creating the app?

Might try:

Code: Select all

sudo systemctl restart httpd
Ensure you use the URL with a trailing slash. For example http://app/

Re: Web App getting redirected to amahi.org control panel

Posted: Wed Dec 14, 2016 10:57 am
by lancaster71

Code: Select all

sudo systemctl restart http
gave me an error, so I restarted httpd. Even with the trailing / same issue.

I installed the Web Apps app from the control panel then used the "New Web App" button to create the app.

Re: Web App getting redirected to amahi.org control panel

Posted: Wed Dec 14, 2016 1:13 pm
by bigfoot65
gave me an error, so I restarted httpd. Even with the trailing / same issue.
Yea sorry about that, I left off the d.
I installed the Web Apps app from the control panel then used the "New Web App" button to create the app.
The ownership permissions of the file you created must be apache:users. If that is not the case, do the following from the directory:

Code: Select all

chown apache:users index.html

Re: Web App getting redirected to amahi.org control panel

Posted: Wed Dec 14, 2016 5:28 pm
by lancaster71
Dang, I was hoping that was it, still having the issue.

I tried giving the app directory and html also to apache:users and changed the permissions to 0777 for all of them just to see if that might have been it too. Still same thing.

Re: Web App getting redirected to amahi.org control panel

Posted: Wed Dec 14, 2016 5:36 pm
by bigfoot65
Did you make any manual changes to the virtual host file or the HDA itself?

It should work otherwise.

Re: Web App getting redirected to amahi.org control panel

Posted: Wed Dec 14, 2016 5:50 pm
by lancaster71
I made some manual changes to the ssh config file, added some external links to the config files for a couple apps, added a user to the wordpress database using phpmyadmin, changed a setting on the owncloud9 config, installed java, openssl, screen, rsnapshot, and bind utils. Other than that, the apps I installed were from the hda control panel.

Re: Web App getting redirected to amahi.org control panel

Posted: Sun Dec 18, 2016 9:25 am
by lancaster71
Tried a fresh install of Amahi and I still keep getting redirected from the webapps site. After getting Amahi installed, webapps was the first thing I set up before anything else.

I also just put the html/index.html file I was using for the webapps app into the wordpress app folder and that worked just fine.

Re: Web App getting redirected to amahi.org control panel

Posted: Sun Dec 18, 2016 9:59 am
by bigfoot65
I also just put the html/index.html file I was using for the webapps app into the wordpress app folder and that worked just fine.
That indicates there is a problem with the apache virtual host file.

Post the contents of /etc http/conf.d/####-webappname.conf. Replace webappname with the name of your web app and #### should correspond to the auto generated number.

You can do:

Code: Select all

ls -al /etc/http/conf.d
to see the file name.

Check /var/log/amahi-app-installer.log for errors.

Re: Web App getting redirected to amahi.org control panel

Posted: Sat Dec 24, 2016 8:15 pm
by lancaster71
There didn't seem to be any errors in the logfile. All the apps that were installed, including the webapps had identical info.

This is the conf.d file for the "website" app that I tried to make:

Code: Select all

<VirtualHost *:80> ServerName website ServerAlias website.amahi.net DocumentRoot /var/hda/web-apps/website/html <Directory "/var/hda/web-apps/website/html"> Options Indexes FollowSymLinks MultiViews <If "-s '/var/hda/web-apps/website/htpasswd'"> AuthType Basic AuthName "User Login Required for This Area" AuthUserFile /var/hda/web-apps/website/htpasswd Require valid-user </If> <Else> AllowOverride AuthConfig Require all granted </Else> </Directory> ErrorLog /var/hda/web-apps/website/logs/error_log CustomLog /var/hda/web-apps/website/logs/access_log combined env=!dontlog </VirtualHost>