{% extends "base.html" %} {% import "_macros.html" as m with context %} {% block title %}Websites{% endblock %} {% block content %} {% macro state(s) %}{% if not s.container %}{% elif s.suspended %}Suspended{% elif s.power == "paused" %}Paused{% elif s.power == "stopped" %}Stopped{% elif s.state == "running" %}Running{% else %}Not running{% endif %}{% endmacro %}

Websites

Domains served by {{ opts.web_server }}. Each website runs in its own container, with its own web server, files and database.

{% if sites %}
{% if is_admin %}{% endif %} {% for s in sites %} {% if is_admin %}{% endif %} {% endfor %}
DomainAccountRuns asStateHTTPS
{{ s.domain }} {% if s.aliases %}also {{ s.aliases|join(", ") }}{% endif %} {{ state(s) }}{{ s.owner }}{{ s.type_label }}{% if s.php_version %} {{ {"node": "", "python": ""}.get(s.type, "PHP ") }}{{ s.php_version }}{% endif %}{% if s.container %} Container{% endif %}{% if s.type == 'proxy' %} :{{ s.proxy_port }}{% endif %} {{ state(s) }} {% if s.ssl %}{{ m.icon("lock") }}On{% else %}Off{% endif %} {% if s.container and not s.suspended %}{{ m.power(s, list=true) }}{% endif %} Manage
{% else %} {% call m.empty("No websites yet", "Add a domain to get a folder for its files, a PHP pool and an access log. HTTPS is one click once the domain points here.") %} {% endcall %} {% endif %}
{% endblock %}