vpanel-stack/panel/ui/vhost/vhosts-vhost.html

99 lines
3.8 KiB
HTML
Raw Normal View History

2022-07-01 15:24:26 -07:00
<include href="header.html" />
<table>
<tr>
2023-06-19 11:53:16 -07:00
<th>Website</th>
2022-07-01 15:24:26 -07:00
<th>Status</th>
2023-06-19 11:53:16 -07:00
<th>Action</th>
2022-07-01 15:24:26 -07:00
</tr>
<tr>
2023-06-19 11:53:16 -07:00
<td>{{ @vhost_array.virtualhost }}</td>
<td>{{ @vhost_array.status }}</td>
<td>
<check if="{{ @vhost_array.status=='Enabled' }}">
<true><a href="{{@REALM}}/Disable">Disable</a></true>
<false><a href="{{@REALM}}/Enable">Enable</a></false>
</check>
<a href="{{@REALM}}/Delete">Delete</a>
</td>
</tr>
</table>
<br><br>
<table>
<tr>
<th>System User</th>
<th>PHP Workers</th>
<th>Action</th>
</tr>
<tr>
<td>{{ @vhost_array.username }}</td>
<td>{{ @users_array.fpmmax }}</td>
<td><a href="{{@BASE}}/Users/{{ @users_array.username }}/Edit">Edit</a></td>
</tr>
</table>
<br><br>
<check if="isset(@cert_array)">
<true>
<table>
<tr>
<th style="white-space: nowrap;">Certificate</th>
<th style="white-space: nowrap;">Expiration</th>
<th style="white-space: nowrap;">Secured Hostnames</th>
<th>Action</th>
</tr>
<tr>
<td style="white-space: nowrap;">{{ @cert_array.common }}</td>
<td style="white-space: nowrap;">{{ @cert_array.end }}</td>
<td style="white-space: nowrap; text-align: right;">{{ @cert_array.alternative | raw }}</td>
<td style="white-space: nowrap;"><a href="{{@BASE}}/Certs/{{@vhost_array.virtualhost}}/Delete?r={{@PATH}}">Delete</a></td>
2022-07-01 15:24:26 -07:00
</tr>
</table>
2023-06-19 11:53:16 -07:00
</true>
<false>
<a href="{{@BASE}}/Certs/{{@vhost_array.virtualhost}}/Add?r={{@PATH}}">Add Security Certificate</a>
</false>
</check>
<br><br>
2022-07-01 15:24:26 -07:00
2023-06-19 11:53:16 -07:00
<table>
<tr><th colspan="2">Remote Access</th></tr>
<tr><td style="text-align: right;">Protocol:</td><td>SFTP (SSH File Transfer Protocol)</td></tr>
<tr><td style="text-align: right;">Hostname:</td><td>{{ @vhost_array.virtualhost }}</td></tr>
<tr><td style="text-align: right;">Username:</td><td>{{ @vhost_array.username }}</td></tr>
<tr><td style="text-align: right;">Password:</td><td><span class="hidden">{{ @users_array.passwd }}</span> <small>&larr; hover mouse here to reveal</small></td></tr>
<tr><td style="text-align: right;">User Home Directory:</td><td>/home/{{ @vhost_array.username }}/</td></tr>
<tr><td style="text-align: right;">Website Files Directory:</td><td>/srv/www/{{ @vhost_array.username }}/html/</td></tr>
<tr><td style="text-align: right;">User Jailed:</td><td>{{ @users_array.jailed }}</td></tr>
<tr><td style="text-align: right;">Action:</td><td><a href="{{@BASE}}/Users/{{ @users_array.username }}/Edit">Edit User</a></td></tr>
<tr><td style="text-align: right;"><small>Notes:</small></td><td><small>The above information can also be used for SSH access.</small></td></tr>
</table>
<br><br>
<table>
<tr><th colspan="2">MySQL Database Info</th></tr>
<tr><td style="text-align: right;">Hostname:</td><td>{{ @mysqlinfo_array.hostname }}</td></tr>
<tr><td style="text-align: right;">Database:</td><td>{{ @mysqlinfo_array.database }}</td></tr>
<tr><td style="text-align: right;">Username:</td><td>{{ @mysqlinfo_array.username }}</td></tr>
<tr><td style="text-align: right;">Password:</td><td><span class="hidden">{{ @mysqlinfo_array.password }}</span> <small>&larr; hover mouse here to reveal</small></td></tr>
<tr><td style="text-align: right;">phpMyAdmin:</td><td>
<check if="isset(@cert_array)">
<true>
<a href="https://{{ @vhost_array.virtualhost }}/phpMyAdmin">https://{{ @vhost_array.virtualhost }}/phpMyAdmin</a>
</true>
<false>
<a href="https://{{ @HOST }}/phpMyAdmin">https://{{ @HOST }}/phpMyAdmin</a>
</false>
</check>
</td></tr>
<tr><td style="text-align: right;"><small>Notes:</small></td><td><small>phpMyAdmin requires a two-stage login process.<br>First use the "Remote Access" info for the popup authentication.<br>Then use the MySQL info for the database login page.</small></td></tr>
</table>
2022-07-01 15:24:26 -07:00
<include href="footer.html" />