Show webserver for users on *OpenAdmin > Domains* and allow editing of main conf file for nginx/apache #1098
Closed
stefanpejcic
started this conversation in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
On the /domains page in the OpenAdmin UI, we can add a new “Webserver” column immediately after “PHP Version” so admins can identify webserver used by the domain. This column should be shown by default and on/off in the toggle.
For each domain, display:
We can reuse the existing webserver/Varnish detection logic from the
/users/<username>page. Since the webserver configuration is per user, fetch/detect this information only once per user and reuse it for all domains belonging to that user.Since we now have the webserver information available per user, we can create a new page:
/domains/config/<username>should work similarly to:/domains/vhost/<username>/<domain>. The new page should allow an administrator to edit the main configuration file for the webserver used by that user. After saving the configuration, the corresponding webserver/service should be restarted.For webserver configuration files located under:
/home/<context>/<conf file>the configuration file/path should be hardcoded.Once the main configuration editing functionality is implemented, we can link it: a new “Edit Main Conf” action to the Actions column on
/domains, before “Edit Caddyfile”, the link should point to:/domains/config/<username>This gives administrators a quick way to edit the user's main webserver configuration directly from the domains list.
All reactions