From 6f4d29a41055bb41dce5ffadd6445eda4e2c4c84 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Tue, 7 Oct 2014 16:17:45 +0000 Subject: [PATCH] tweak the new web instructions --- management/templates/web.html | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/management/templates/web.html b/management/templates/web.html index 4bb95a52..43db7f60 100644 --- a/management/templates/web.html +++ b/management/templates/web.html @@ -7,16 +7,18 @@

Uploading web files

-

You can replace this website with your own HTML or other static files:

+

You can replace the default website with your own HTML pages and other static files. This control panel won’t help you design a website, but once you have .html files you can upload it following these instructions:

    -
  1. Ensure that the domains and SSL certificates are configured properly on the Status Checks page.
  2. +
  3. Ensure that any domains you are publishing a website for have no problems on the Status Checks page.
  4. -
  5. Install an SSH file transfer program such as FileZilla or scp.
  6. +
  7. On your personal computer, install an SSH file transfer program such as FileZilla or scp.
  8. -
  9. Log in with the file transfer program. The server is {{hostname}}, the protocol is SSH or SFTP, and use the SSH login credentials that you used when you originally created this machine at your cloud host provider. This is not what you use to log in either for email or this control panel. Your SSH credentials probably involves a private key file.
  10. +
  11. Log in to this machine with the file transfer program. The server is {{hostname}}, the protocol is SSH or SFTP, and use the SSH login credentials that you used when you originally created this machine at your cloud host provider. This is not what you use to log in either for email or this control panel. Your SSH credentials probably involves a private key file.
  12. -
  13. Replace the files in {{storage_root}}/www/default, or the directory indicated in the table below, with any HTML pages or other static files. They will appear directly and immediately on the web.
  14. +
  15. Upload your .html or other files to the directory {{storage_root}}/www/default on this machine. They will appear directly and immediately on the web.
  16. + +
  17. The websites set up on this machine are listed in the table below with where to put the files for each website (if you have customized that, see next section).
  18. @@ -62,22 +64,22 @@ function show_web() { var tb = $('#web_domains_existing tbody'); tb.text(''); for (var i = 0; i < domains.length; i++) { - var row = $(""); + var row = $(""); tb.append(row); row.find('.domain a').text('https://' + domains[i].domain); row.find('.domain a').attr('href', 'https://' + domains[i].domain); - row.find('.directory').text(domains[i].root); + row.find('.directory tt').text(domains[i].root); } tb = $('#web_domains_custom tbody'); tb.text(''); for (var i = 0; i < domains.length; i++) { if (domains[i].root != domains[i].custom_root) { - var row = $(""); + var row = $(""); tb.append(row); row.find('.domain a').text('https://' + domains[i].domain); row.find('.domain a').attr('href', 'https://' + domains[i].domain); - row.find('.directory').text(domains[i].custom_root); + row.find('.directory tt').text(domains[i].custom_root); } } });