From fc38ec4dade69a2362a121276019f50ae069f9b3 Mon Sep 17 00:00:00 2001 From: "Altomarketing.com" Date: Mon, 24 Jun 2024 19:25:11 -0300 Subject: [PATCH] Update other-webservers.md htaccess for cyberpanel --- docs/getting-started/other-webservers.md | 40 +++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/docs/getting-started/other-webservers.md b/docs/getting-started/other-webservers.md index 38c4f84..8af798e 100644 --- a/docs/getting-started/other-webservers.md +++ b/docs/getting-started/other-webservers.md @@ -97,9 +97,47 @@ allow all; ``` +## Litespeed -Make sure to create log files for Apache before deployment, the path to apaches log directory may be different depending on factors like your distribution, so make sure to check where it is first. +**This is just an .htaccess example, we assume that you have prior experience setting up Litespeed - Cyberpanel!** +``` + + + Options -MultiViews + + + RewriteEngine On + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^(.*)/$ /$1 [L,R=301] + + # Handle Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + +# Restrict access to critical files + +Order allow,deny +Deny from all + + + Order allow,deny + Deny from all + + + Order allow,deny + Deny from all + +``` + ## More webservers Currently, no documentation is provided for other web server solutions.