From 1f132d72c3c9f97ed55702d8d1011f325c375613 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 13 Sep 2024 05:19:46 +0000 Subject: [PATCH] caddy, apache, lightspeed --- Caddyfile | 12 +- .../index.htm/index.htm/index.htm/index.html | 1 + .../index.htm/index.htm/index.htm/index.html | 415 + .../index.htm/index.htm/index.htm/index.html | 369 + static/index.htm/index.htm/index.html | 477 ++ static/{index.htm => index.htm/index.html} | 0 static/litespeed/404-icon.png | Bin 0 -> 3215 bytes static/litespeed/blocked_content-icon.png | Bin 0 -> 1886 bytes static/litespeed/bootstrap.min.css | 7214 +++++++++++++++++ static/litespeed/cgi-icon.png | Bin 0 -> 2975 bytes static/litespeed/custom.css | 475 ++ static/litespeed/file_upload-icon.png | Bin 0 -> 1448 bytes static/litespeed/olsws_logo.png | Bin 0 -> 16330 bytes static/litespeed/php-icon.png | Bin 0 -> 2075 bytes static/litespeed/powered_by_ols-new.png | Bin 0 -> 1089 bytes static/litespeed/pwd_protect-icon.png | Bin 0 -> 2386 bytes 16 files changed, 8956 insertions(+), 7 deletions(-) create mode 100644 static/index.htm/index.htm/index.htm/index.htm/index.htm/index.html create mode 100644 static/index.htm/index.htm/index.htm/index.htm/index.html create mode 100644 static/index.htm/index.htm/index.htm/index.html create mode 100644 static/index.htm/index.htm/index.html rename static/{index.htm => index.htm/index.html} (100%) create mode 100644 static/litespeed/404-icon.png create mode 100644 static/litespeed/blocked_content-icon.png create mode 100644 static/litespeed/bootstrap.min.css create mode 100644 static/litespeed/cgi-icon.png create mode 100644 static/litespeed/custom.css create mode 100644 static/litespeed/file_upload-icon.png create mode 100644 static/litespeed/olsws_logo.png create mode 100644 static/litespeed/php-icon.png create mode 100644 static/litespeed/powered_by_ols-new.png create mode 100644 static/litespeed/pwd_protect-icon.png diff --git a/Caddyfile b/Caddyfile index 30b5503..23d12be 100644 --- a/Caddyfile +++ b/Caddyfile @@ -90,13 +90,11 @@ http://matdoes.dev https://matdoes.dev http://matctazmu565vivubva3p3bulaneangiff rewrite @txt_index /.txt rewrite @txt {path}.txt # rewrite /.txt to /index.txt - handle { - rewrite /.txt /index.txt - } - handle { - rewrite /index.html /index.htm - header /index.html Server nginx - } + rewrite /.txt /index.txt + + # make /index.html show different page + rewrite /index.html /index.htm + header /index.html Server nginx # don't require .html try_files {path} {path}.html diff --git a/static/index.htm/index.htm/index.htm/index.htm/index.htm/index.html b/static/index.htm/index.htm/index.htm/index.htm/index.htm/index.html new file mode 100644 index 0000000..beeda1f --- /dev/null +++ b/static/index.htm/index.htm/index.htm/index.htm/index.htm/index.html @@ -0,0 +1 @@ +i don't have any more sorry diff --git a/static/index.htm/index.htm/index.htm/index.htm/index.html b/static/index.htm/index.htm/index.htm/index.htm/index.html new file mode 100644 index 0000000..eea925a --- /dev/null +++ b/static/index.htm/index.htm/index.htm/index.htm/index.html @@ -0,0 +1,415 @@ + + + + + + + + + Welcome + + + + + + + + + + +
+
+
+ +
+
+ openlitespeed logo +
+

Congratulations

+

You have successfully installed the OpenLiteSpeed Web Server!

+
+ +
+ READ ME! +
+ +
+
+ +

+ {  Read Me  } +

+
+

You should replace this page with your own web pages.

+

+ It is not recommended to copy files into the directory where this page located, + they might be over-written during upgrade or reinstallation. +

+

+ Create a new virtual host and map a listener to it. Have no clue? Please read the + Documentation. +

+

+ For your web administration login page, please refer to the installation guide. +

+

+ Add openlitespeed logo the OpenLiteSpeed logo to your web site if you'd like to help us promote + the server. +

+
+
+
+
+
+ +
+ +
+

Simple Feature Demos

+
+ +
+
+
+ cgi +
+
+

CGI script

+
+
Hello World from CGI script
+
+ +
+
+
+ +
+
+
+ php +
+
+

Test PHP

+
+
+ If you enabled PHP during installation,
click here to test it +
+ +
+
+
+ +
+
+
+ 404 +
+
+

Customized Error Page

+
+
Missing page
+
+ +
+
+
+ +
+
+
+ password protection +
+
+

Authentication

+
+
+ Password protected content,
user name: test, password: test123 +
+ +
+
+
+ +
+
+
+ blocked content +
+
+

Blocked Content

+
+
Blocked area
+
+ +
+
+
+ +
+
+
+ file upload +
+
+

File Upload

+
+
Test file upload progress module
+
+ +
+
+
+
+
+ +
+ + + +
+
+
+

About OpenLiteSpeed

+
+
+ +
+
+
+
Features
+

+
    +
  • + Event-driven architecture and extremely low resource overhead +
  • +
  • User friendly WebAdmin GUI
  • +
  • + Built-in full-page cache module is highly-customizable and efficient +
  • +
  • + Native SAPI allows external PHP applications to run up to 50% faster +
  • +
  • + Install OpenLiteSpeed, MariaDB and WordPress with just one click +
  • +
+
+
+ + + + +
+
+
+
+ +
+ power by openlitespeed +
+

Back to top

+ +
+
+ + diff --git a/static/index.htm/index.htm/index.htm/index.html b/static/index.htm/index.htm/index.htm/index.html new file mode 100644 index 0000000..388c397 --- /dev/null +++ b/static/index.htm/index.htm/index.htm/index.html @@ -0,0 +1,369 @@ + + + + + + Apache2 Ubuntu Default Page: It works + + + +
+ + +
+
+
+ It works! +
+
+

+ This is the default welcome page used to test the correct operation of the Apache2 + server after installation on Ubuntu systems. It is based on the equivalent page on + Debian, from which the Ubuntu Apache packaging is derived. If you can read this page, it + means that the Apache HTTP server installed at this site is working properly. You should + replace this file (located at /var/www/html/index.html) before + continuing to operate your HTTP server. +

+ +

+ If you are a normal user of this web site and don't know what this page is about, this + probably means that the site is currently unavailable due to maintenance. If the problem + persists, please contact the site's administrator. +

+
+
+
+ Configuration Overview +
+
+

+ Ubuntu's Apache2 default configuration is different from the upstream default + configuration, and split into several files optimized for interaction with Ubuntu tools. + The configuration system is + fully documented in /usr/share/doc/apache2/README.Debian.gz. Refer to this for + the full documentation. Documentation for the web server itself can be found by + accessing the manual if the apache2-doc + package was installed on this server. +

+

+ The configuration layout for an Apache2 web server installation on Ubuntu systems is as + follows: +

+
+/etc/apache2/
+|-- apache2.conf
+|       `--  ports.conf
+|-- mods-enabled
+|       |-- *.load
+|       `-- *.conf
+|-- conf-enabled
+|       `-- *.conf
+|-- sites-enabled
+|       `-- *.conf
+          
+
    +
  • + apache2.conf is the main configuration file. It puts the pieces together by + including all remaining configuration files when starting up the web server. +
  • + +
  • + ports.conf is always included from the main configuration file. It is used to + determine the listening ports for incoming connections, and this file can be + customized anytime. +
  • + +
  • + Configuration files in the mods-enabled/, conf-enabled/ and + sites-enabled/ directories contain particular configuration snippets which + manage modules, global configuration fragments, or virtual host configurations, + respectively. +
  • + +
  • + They are activated by symlinking available configuration files from their respective + *-available/ counterparts. These should be managed by using our helpers + + a2enmod, + a2dismod, + + + a2ensite, + a2dissite, + + and + + a2enconf, + a2disconf . See their respective man pages for detailed information. +
  • + +
  • + The binary is called apache2. Due to the use of environment variables, in the default + configuration, apache2 needs to be started/stopped with + /etc/init.d/apache2 or apache2ctl. + Calling /usr/bin/apache2 directly will not work with the default + configuration. +
  • +
+
+ +
+
+ Document Roots +
+ +
+

+ By default, Ubuntu does not allow access through the web browser to + any file apart of those located in /var/www, + public_html + directories (when enabled) and /usr/share (for web applications). If your site + is using a web document root located elsewhere (such as in /srv) you may need + to whitelist your document root directory in /etc/apache2/apache2.conf. +

+

+ The default Ubuntu document root is /var/www/html. You can make your own + virtual hosts under /var/www. This is different to previous releases which provides + better security out of the box. +

+
+ +
+
+ Reporting Problems +
+
+

+ Please use the ubuntu-bug tool to report bugs in the Apache2 package with + Ubuntu. However, check + existing bug reports + before reporting a new bug. +

+

+ Please report bugs specific to modules (such as PHP and others) to respective packages, + not to the web server itself. +

+
+
+
+
+

+ Valid XHTML 1.0 Transitional +

+
+ + diff --git a/static/index.htm/index.htm/index.html b/static/index.htm/index.htm/index.html new file mode 100644 index 0000000..99571aa --- /dev/null +++ b/static/index.htm/index.htm/index.html @@ -0,0 +1,477 @@ + + + + Caddy works! + + + + + + + +
+
+
+
+ + + + + + + + + + +

+ + Congratulations! + + おめでとう! + + Felicidades! + + 恭喜! + + बधाई हो! + + Поздравляю! + + Вітаю! + + Gefeliciteerd! + + Glückwunsch! + 🎊 +

+ +

Your web server is working. Now make it work for you. 💪

+

Caddy is ready to serve your site over HTTPS:

+
    +
  1. Point your domain's A/AAAA DNS records at this machine.
  2. +
  3. Upload your site's files to /var/www/html.
  4. +
  5. + Edit your Caddyfile at /etc/caddy/Caddyfile: +
      +
    1. Replace :80 with your domain name
    2. +
    3. Change the site root to /var/www/html
    4. +
    +
  6. +
  7. Reload the configuration: systemctl reload caddy
  8. +
  9. Visit your site!
  10. +
+

If that worked 🥳

+

Awesome! You won't have to look at this slanted page anymore.

+

+ Remember, Caddy can do a lot more than serve static files. It's also a powerful reverse + proxy and application platform. You can use the Caddyfile to enable any other features you + need. Or you could use Caddy's API to configure it programmatically. +

+

+ Everything you need to know is either in the + 📖 Caddy documentation or the manual for your + OS/platform. Have fun! +

+ +

If that didn't work 😶

+

It's okay, you can fix it! First check the following things:

+
    +
  • Service status: systemctl status caddy
  • +
  • Logs: journalctl --no-pager -u caddy
  • +
  • + Are your site's files readable by the caddy user and group? + ls -la /var/www/html +
  • +
  • Is the caddy home directory writeable? ls -la /var/lib/caddy
  • +
  • + Ensure your domain's A and/or AAAA records point to your machine's public IP address: + dig example.com +
  • +
  • + Are your ports 80 and 443 externally reachable, and is Caddy able to bind to them? Check + your firewalls, port forwarding, and other network configuration. +
  • +
+

+ WAIT! Before trying again, switch to + Let's Encrypt's staging environment + to avoid being accidentally + rate limited. Once you get + everything else working, it's safe to switch back. +

+

+ Depending on your DNS provider, it may take a while for the DNS records to propagate. Even + when everything is configured properly, automated challenges to obtain TLS certificates + usually take several seconds, but may take up to several minutes or hours. +

+ +

+ If you still need help, we have a great community! + First try a search, and if your question is + original, go ahead and ask it! Remember to pay it forward and help others too. 😁 +

+

+ Visit Caddy on: + GitHub + or + Twitter + or + Our Forum +

+
+
+ + + + diff --git a/static/index.htm b/static/index.htm/index.html similarity index 100% rename from static/index.htm rename to static/index.htm/index.html diff --git a/static/litespeed/404-icon.png b/static/litespeed/404-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..de53b7b5e785f1ff738d2e3a917143fc89a7e91b GIT binary patch literal 3215 zcmY*b2Taoq^KJ{24MjGH4B10u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%TL-jq$^1g>}*2Bf#SU$#uMSBsFy!+%{rV$I0bS z-f4`ozTq(LzijMfxNxs5!TIbT4aMQqG2*CA4h*we3!1x4Uo49p&@u)~zHdW}Z!!-F zUm1q|mKJQMZqK0y^rcX=YRVS7#DwQe<@s9@%Ch}RS+5=ttlkRWdyVe(f1VmzgYb6} zGkeyN{+c*i6*4|)umv1_zvV*vvIP{U{yAvKqgU-r1YuIG%H!eFswQR{!?E15KiJ4- z4`MV zu*exKZr)>Z8!S1cqeoQ`%ZS&#unCBbGrBfcJUZfoKe*##7E+hgR$?Xm8?Mf<2Z@vQ zadx^fP@zO!#WR&d3J)Z5Y0fRC3ish|7K_61zx9`7_Q-9=KDjY%jTcO$MsT@h-CY%{ zNvZ4F-h>IU5%M4-efo`s?Km zTjT~{o5rJ96$7Z79io>vV0~zaiK(2WgI%1bxl$A~f0W3V+I*MfXVFz7#jd-Ec;I$Pz# zGfMWAl-4#nF+1MOm0q!H?LyK5#^ zojwu97t26#eJk+bm>0-rGgI1k0=--~_My26M>MfX>ZJvSPqH>S8K s|MDmv1mD-GO8YMtUv1{tPY2O~wyUFDIc(J@PuV}n+|=5n+{i28Kh3BK1^@s6 literal 0 HcmV?d00001 diff --git a/static/litespeed/blocked_content-icon.png b/static/litespeed/blocked_content-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..84dfcef0f3d813502d8e64a147432e6bdb3d5017 GIT binary patch literal 1886 zcmZ8ic{JOL68<5U*l&5YS1c`U>`S~?RP0L;C9k!w3AJ6dQ@xewMeGr6l~(CRs1}u2 zt}9wpY;~JFmm-#HeUzwODxzNg=(*>;H|Lv~Gw00AAM>4=$#HYF7Za8j1^__J(ZR-@ z>+xJ&5#r-oIMmON>*Nw_Jrg`)LKBjM;?RI4Dkc~Waf}WML%XAcP^q!QXftk-p_?<( zmdRvJO--@c?2e9(-Q8UpjkdJ3M4?a)4-b2KdPYV@*4Ea>$H(X9=BQLEi9|X(I|CM$ z?6~DWB)GeJaKrx*;9_H0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