2022-07-01 15:24:26 -07:00
|
|
|
<include href="header.html" />
|
|
|
|
|
2022-08-31 14:28:20 -07:00
|
|
|
<check if="isset(@vhosts_array)">
|
|
|
|
<true>
|
|
|
|
<table>
|
2022-07-01 15:24:26 -07:00
|
|
|
<tr>
|
2022-08-31 14:28:20 -07:00
|
|
|
<th>Website</th>
|
|
|
|
<th>Username</th>
|
|
|
|
<th>Config</th>
|
|
|
|
<th>Status</th>
|
2022-07-01 15:24:26 -07:00
|
|
|
</tr>
|
|
|
|
|
2022-08-31 14:28:20 -07:00
|
|
|
<repeat group="{{ @vhosts_array }}" value="{{ @vhost_domain }}">
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td><a href="{{@BASE}}/Websites/{{ @vhost_domain.virtualhost }}">{{ @vhost_domain.virtualhost }}</a></td>
|
|
|
|
<td>{{ @vhost_domain.username }}</td>
|
|
|
|
<td>{{ @vhost_domain.config }}</td>
|
|
|
|
<td>{{ @vhost_domain.status }}</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</repeat>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
<p>
|
|
|
|
Select a <b>Website</b> name above for more details and options.<br>
|
|
|
|
<b>Username</b> is the system username that owns the website files.<br>
|
|
|
|
<b>Config</b> is the Apache server Macro Virtualhost config currently set for the site.<br>
|
|
|
|
<b>Status</b> can be used to disable a site without deleting any files or other configs.<br>
|
|
|
|
</p>
|
|
|
|
</true>
|
|
|
|
<false>
|
|
|
|
<p>There are no website domains on this server.</p>
|
|
|
|
</false>
|
|
|
|
</check>
|
2022-07-01 15:24:26 -07:00
|
|
|
|
|
|
|
<p>
|
|
|
|
<a href="#Add_New_Website">Add new Website form</a>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<form action="{{@REALM}}" method="POST">
|
2022-08-31 14:28:20 -07:00
|
|
|
<h4 id="Add_New_Website">Add New Website</h4>
|
2022-07-01 15:24:26 -07:00
|
|
|
<fieldset>
|
|
|
|
<legend>Only the domain name is required</legend>
|
|
|
|
<label for="domain">Domain Name <small>(Do not include 'www', that will be aliased to the main domain)</small></label>
|
2022-08-31 14:28:20 -07:00
|
|
|
<input id="domain" name="domain" type="text" placeholder="example.com" value="" required>
|
2022-07-01 15:24:26 -07:00
|
|
|
|
|
|
|
<label for="username">Username <small>(System username, leave empty for auto-creation)</small></label>
|
2022-08-31 14:28:20 -07:00
|
|
|
<input id="username" name="username" type="text" placeholder="examplec" value="" required>
|
2022-07-01 15:24:26 -07:00
|
|
|
|
|
|
|
Check to jail user: <input type="checkbox" id="jail" name="jail" value="yes" checked>
|
|
|
|
|
|
|
|
<label for="macro">Config <small>(A valid Let's Encrypt certificate is required for VHostHTTPS)</small></label>
|
|
|
|
<select id="macro" name="macro">
|
|
|
|
<option value="VHostHTTP" selected>VHostHTTP</option>
|
|
|
|
<option value="VHostHTTPS">VHostHTTPS</option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<label for="status">Status</label>
|
|
|
|
<select id="status" name="status">
|
|
|
|
<option value="1" selected>Enabled</option>
|
|
|
|
<option value="0">Disabled</option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<input type="submit" value="Submit">
|
|
|
|
<button id="reset" type="reset" disabled>Reset</button>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<small>Any other form instructions go here.</small>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<include href="footer.html" />
|