vpanel-stack/panel/ui/vhost/vhosts-vhost.html
2023-09-28 12:49:33 -07:00

135 lines
5.8 KiB
HTML

<include href="header.html" />
<table>
<tr>
<th>Website</th>
<th>Status</th>
<th>Action</th>
</tr>
<tr>
<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 User</a></td>
</tr>
</table>
<check if="isset(@cert_array)">
<true>
<br><br>
<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>
</tr>
</table>
<br><br>
</true>
<false>
<hr>
<check if="{{ @dnsinfo.a.status=='Verified' }}">
<true>
You need a Security Certificate. <a href="{{@BASE}}/Certs/{{@vhost_array.virtualhost}}/Add?r={{@PATH}}">Click Here</a> to add one now.
</true>
<false>
<span style="color:red">You need a Security Certificate for {{ @vhost_array.virtualhost }}.</span>
<br>
Before you can add one you must make the DNS change listed below. Once that's completed come back here and this message will change to an option to create a Security Certificate.
<br>
<small>Note that after you add DNS records it can take some time for the changes to propagate and show up here.</small>
<br><br>
<table>
<tr><th style="color:{{ @dnsinfo.a.color }}" colspan="2">{{ @dnsinfo.a.status }} A Record for {{ @vhost_array.virtualhost }}</th></tr>
<tr><td style="text-align: right;">Type:</td><td>A</td></tr>
<tr><td style="text-align: right;">Host:</td><td>{{ @vhost_array.virtualhost }}</td></tr>
<tr><td style="text-align: right;">Value:</td><td>{{ @dnsinfo.server_addr }}</td></tr>
<tr><td style="text-align: right;">TTL:</td><td>3600 (or default)</td></tr>
<tr><td></td><td><small>This should be the only A record for {{ @vhost_array.virtualhost }}.</small></td></tr>
</table>
<br><br>
<table>
<tr><th style="color:{{ @dnsinfo.a.color }}" colspan="2">Verify CNAME Record for www.{{ @vhost_array.virtualhost }}</th></tr>
<tr><td style="text-align: right;">Type:</td><td>CNAME</td></tr>
<tr><td style="text-align: right;">Host:</td><td>www.{{ @vhost_array.virtualhost }}</td></tr>
<tr><td style="text-align: right;">Value:</td><td>{{ @vhost_array.virtualhost }}</td></tr>
<tr><td style="text-align: right;">TTL:</td><td>3600 (or default)</td></tr>
<tr><td></td><td><small>This should be the only record for www.{{ @vhost_array.virtualhost }}.<br>Note this admin did not check for this record, it may already exist.</small></td></tr>
</table>
</false>
</check>
<hr>
</false>
</check>
<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>
<check if="isset(@cert_array)">
<true>{{ @vhost_array.virtualhost }}</true>
<false>
<check if="{{ @dnsinfo.a.status=='Verified' }}">
<true>{{ @vhost_array.virtualhost }}</true>
<false>{{ @dnsinfo.server_addr }}</false>
</check>
</false>
</check>
</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;">Directory:</td><td>/srv/www/{{ @vhost_array.virtualhost }}/html/</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>
<include href="footer.html" />