Skip to content

Commit 76ed506

Browse files
Merge pull request #11 from altomarketing/patch-1
Update other-webservers.md
2 parents 441c248 + fc38ec4 commit 76ed506

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

docs/getting-started/other-webservers.md

+39-1
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,47 @@ allow all;
9797
</Directory>
9898
</VirtualHost>
9999
```
100+
## Litespeed
100101

101-
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.
102+
**This is just an .htaccess example, we assume that you have prior experience setting up Litespeed - Cyberpanel!**
102103

104+
```
105+
<IfModule mod_rewrite.c>
106+
<IfModule mod_negotiation.c>
107+
Options -MultiViews
108+
</IfModule>
109+
110+
RewriteEngine On
111+
112+
# Redirect Trailing Slashes If Not A Folder...
113+
RewriteCond %{REQUEST_FILENAME} !-d
114+
RewriteRule ^(.*)/$ /$1 [L,R=301]
115+
116+
# Handle Front Controller...
117+
RewriteCond %{REQUEST_FILENAME} !-d
118+
RewriteCond %{REQUEST_FILENAME} !-f
119+
RewriteRule ^ index.php [L]
120+
121+
# Handle Authorization Header
122+
RewriteCond %{HTTP:Authorization} .
123+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
124+
</IfModule>
125+
126+
# Restrict access to critical files
127+
<FilesMatch "^\.">
128+
Order allow,deny
129+
Deny from all
130+
</FilesMatch>
131+
<Files ~ "\.sqlite$">
132+
Order allow,deny
133+
Deny from all
134+
</Files>
135+
<Files ~ "\.zip$">
136+
Order allow,deny
137+
Deny from all
138+
</Files>
139+
```
140+
103141
## More webservers
104142

105143
Currently, no documentation is provided for other web server solutions.

0 commit comments

Comments
 (0)