vpanel-stack/panel/ui/vhost/vhosts-add.html
2024-09-18 12:36:22 -07:00

67 lines
2.7 KiB
HTML

<include href="header.html" />
<form action="{{@REALM}}" method="POST">
<h4 id="Add_New_Website">Add New Website</h4>
<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>
<input id="domain" name="domain" type="text" placeholder="example.com" value="" required>
<label for="fpm_version">PHP Version <small>(Version of PHP to enable for this website - default is {{ @deploy.fpm_version }})</small></label>
<select id="fpm_version" name="fpm_version">
<repeat group="{{ @deploy.fpm_versions_array }}" value="{{ @fpm_version }}">
<check if="{{ @fpm_version==@deploy.fpm_version }}">
<true>
<option value="{{ @fpm_version }}" selected>{{ @fpm_version }}</option>
</true>
<false>
<option value="{{ @fpm_version }}">{{ @fpm_version }}</option>
</false>
</check>
</repeat>
</select>
<label for="username">Username <small>(Used for SSH & SFTP access, leave empty to auto-create new user)</small></label>
<select id="username" name="username">
<check if="{{ @deploy.username=='' }}">
<true>
<option value="" selected></option>
</true>
<false>
<option value=""></option>
</false>
</check>
<repeat group="{{ @deploy.users_array }}" value="{{ @user_array }}">
<check if="{{ @deploy.username==@user_array.username }}">
<true>
<option value="{{ @user_array.username }}" selected>{{ @user_array.username }}</option>
</true>
<false>
<option value="{{ @user_array.username }}">{{ @user_array.username }}</option>
</false>
</check>
</repeat>
</select>
<small><a href="{{@BASE}}/Users/Add">Add user here</a> first if you want to create a specific username for this site.</small>
<br><br>
<input type="submit" value="Submit">
<button id="reset" type="reset" disabled>Reset</button>
<br>
<!-- <small>Any other form instructions go here.</small> -->
</fieldset>
</form>
<p>
<b>Domain Name</b> Enter the website domain name without the leading www.<br>
<b>PHP Version</b> It's recommended to either use the default version (listed above) or the very latest version (highest number) if that works for your website. Only use an older version if you absolutely must do so to make your website code work.<br>
<b>Username</b> By default this should be left blank which will create a new (unique) username just for this site. Optionally you can pick from a list of existing users, or first go to the User admin and create a specific username &amp; password.<br>
</p>
<include href="footer.html" />