Page 1 of 1

DNS Alias Question

Posted: Thu Jan 28, 2016 7:51 am
by TheParkerFamily
How do you setup the 'friendly' URL for a webapp that is running on a particular port?

For example, the cockpit admin page runs on port 9090 by default, and is accessed via: http://localhost:9090

I'd like to add an actual URL for it so that you can type in http://cockpit.hda.local similar to the link for the apps installed via the control panel.

I know how to do this in IIS etc on windows servers, but so far not having any luck figuring out how to do in Fedora...

Re: DNS Alias Question

Posted: Thu Jan 28, 2016 8:37 am
by bigfoot65
How do you setup the 'friendly' URL for a webapp that is running on a particular port?
It can be done, but not a simple process. It would actually require manipulating the database which is not recommended along with some other changes.
For example, the cockpit admin page runs on port 9090 by default, and is accessed via: http://localhost:9090
Also we do not recommend users change anything with the the Cockpit admin page. Use the HDA Dashboard first as using the Fedora UI could break the Amahi functionality. For example, creating users or restarting services. That should always be done via the HDA dashboard.

Re: DNS Alias Question

Posted: Thu Jan 28, 2016 9:20 am
by TheParkerFamily
Oh - I don't want to change anything via cockpit - I just like the realtime view of storage system etc.

Helped me a ton while troubleshooting issue with greyhole to see exactly which drives were reading/writing etc

Re: DNS Alias Question

Posted: Thu Jan 28, 2016 10:05 am
by bigfoot65
What you could do is install the Web Apps plug-in. Create a web app using the plug-in and call it Cockpit. Then modify the appropriate .conf file created by it to access Cockpit to include the port, save it, and restart httpd.

That is the simpler method. No icon on the Dashboard, but the URL will be created as http://cockpit.amhi.net or whatever domain you use. Access the app via via short name of Cockpit or the full URL.