DNS Alias Question

User avatar
TheParkerFamily
Posts: 32
Joined: Tue Jan 05, 2016 10:40 am

DNS Alias Question

Postby TheParkerFamily » Thu Jan 28, 2016 7:51 am

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...
+++Error At Address: 14, Treacle Mine Road, Ankh-Morpork+++
+++Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
+++Whoops! Here Comes The Cheese! +++

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

Re: DNS Alias Question

Postby bigfoot65 » Thu Jan 28, 2016 8:37 am

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.
ßîgƒσστ65
Applications Manager

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

User avatar
TheParkerFamily
Posts: 32
Joined: Tue Jan 05, 2016 10:40 am

Re: DNS Alias Question

Postby TheParkerFamily » Thu Jan 28, 2016 9:20 am

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
+++Error At Address: 14, Treacle Mine Road, Ankh-Morpork+++
+++Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
+++Whoops! Here Comes The Cheese! +++

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

Re: DNS Alias Question

Postby bigfoot65 » Thu Jan 28, 2016 10:05 am

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.
ßî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 21 guests