1
0

webserv.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <div class="standardContainer">
  2. <div class="ui basic segment">
  3. <h2>Static Web Server</h2>
  4. <p>A simple static web server that serve html css and js files</p>
  5. </div>
  6. <div class="ui divider"></div>
  7. <h3>Web Server Settings</h3>
  8. <div class="ui form">
  9. <div class="field">
  10. <label>Document Root Folder</label>
  11. <input id="webserv_docRoot" type="text" readonly="true">
  12. <small>
  13. The web server root folder can only be changed via startup flags of zoraxy for security reasons.
  14. See the -webserv flag for more details.
  15. </small>
  16. </div>
  17. <div class="field">
  18. <label>Port Number</label>
  19. <input id="webserv_docRoot" type="number" step="1" min="0" max="65535" value="8081" onchange="updateWebServLinkExample(this.value);">
  20. <small>Use <code>http://127.0.0.1:<span class="webserv_port">8081</span></code> in proxy rules to access the web server</small>
  21. </div>
  22. <div class="inline field">
  23. <div class="ui toggle checkbox">
  24. <input id="webserv_enable" type="checkbox" class="hidden">
  25. <label>Enable Static Web Server</label>
  26. <small>Enable static web server. Use %webserv% in proxy rules to enable </small>
  27. </div>
  28. </div>
  29. <div class="inline field">
  30. <div class="ui toggle checkbox">
  31. <input id="webserv_enableDirList" type="checkbox" class="hidden">
  32. <label>Enable Directory Listing</label>
  33. </div>
  34. </div>
  35. </div>
  36. <br>
  37. <div class="ui message">
  38. <div class="ui accordion webservhelp">
  39. <div class="title">
  40. <i class="dropdown icon"></i>
  41. How to access the static web server?
  42. </div>
  43. <div class="content">
  44. There are three ways to access the static web server. <br>
  45. <div class="ui ordered list">
  46. <div class="item">
  47. If you are using Zoraxy as your gateway reverse proxy server,
  48. you can add a new subdomain proxy rule that points to
  49. <a>http://127.0.0.1:<span class="webserv_port">8081</span></a>
  50. </div>
  51. <div class="item">
  52. If you are using Zoraxy under another reverse proxy server,
  53. add <a>http://127.0.0.1:<span class="webserv_port">8081</span></a> to the config of your upper layer reverse proxy server's config file.
  54. </div>
  55. <div class="item">
  56. Directly access the web server via <a>http://{zoraxy_host_ip}:<span class="webserv_port">8081</span></a> (Not recommended)
  57. </div>
  58. <br>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. <div class="ui divider"></div>
  64. <script>
  65. $(".webservhelp").accordion();
  66. function updateWebServLinkExample(newport){
  67. $(".webserv_port").text(newport);
  68. }
  69. </script>
  70. </div>