Skip to content

Commit 63411b3

Browse files
committed
redis hosting apache file
1 parent e83ea7e commit 63411b3

File tree

2 files changed

+156
-0
lines changed

2 files changed

+156
-0
lines changed

install/litespeed/httpd-redis.conf

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
2+
#
3+
#
4+
# Warning: Do not edit this file directly, this file is autogenerated.
5+
#
6+
#
7+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
8+
9+
10+
ServerRoot "/usr/local/lsws"
11+
12+
Listen 0.0.0.0:80
13+
Listen [::]:80
14+
Listen 0.0.0.0:443
15+
Listen [::]:443
16+
17+
User nobody
18+
Group nobody
19+
ServerAdmin root@localhost
20+
21+
<Directory />
22+
AllowOverride none
23+
</Directory>
24+
25+
<Directory /home>
26+
AllowOverride All
27+
Options +Includes -Indexes +ExecCGI
28+
</Directory>
29+
30+
DirectoryIndex index.php index.html
31+
32+
<Files ".ht*">
33+
Require all denied
34+
</Files>
35+
36+
ErrorLog "/usr/local/lsws/logs/error.log"
37+
LogLevel warn
38+
39+
LogFormat '"%v %h %l %u %t \"%r\" %>s %b"' combined
40+
CustomLog "/usr/local/lsws/logs/access.log" combined
41+
42+
43+
AddType application/x-compress .Z
44+
AddType application/x-gzip .gz .tgz
45+
AddType text/html .shtml
46+
AddOutputFilter INCLUDES .shtml
47+
#AddHandler cgi-script .cgi
48+
49+
AddDefaultCharset UTF-8
50+
51+
<IfModule mime_magic_module>
52+
MIMEMagicFile conf/magic
53+
</IfModule>
54+
55+
EnableSendfile on
56+
57+
SSLProtocol all -SSLv3 -TLSv1
58+
SSLHonorCipherOrder on
59+
60+
SSLCipherSuite ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:HIGH:!EDH-RSA-DES-CBC3-SHA:!DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4
61+
62+
<IfModule Litespeed>
63+
CacheRoot /home/lscache/
64+
</IfModule>
65+
66+
<VirtualHost *:80>
67+
ServerName RedisDynVhost_80
68+
DocumentRoot "/var/www/html"
69+
</VirtualHost>
70+
Listen 443
71+
<VirtualHost *:443>
72+
ServerName RedisDynVhost_443
73+
DocumentRoot "/var/www/html"
74+
SSLEngine on
75+
SSLCertificateFile "/usr/local/lscp/conf/cert.pem"
76+
SSLCertificateKeyFile "/usr/local/lscp/conf/key.pem"
77+
</VirtualHost>
78+
Include /usr/local/lsws/conf/modsec.conf
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
2+
#
3+
#
4+
# Warning: Do not edit this file directly, this file is autogenerated.
5+
#
6+
#
7+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
8+
9+
10+
ServerRoot "/usr/local/lsws"
11+
12+
Listen 0.0.0.0:80
13+
Listen [::]:80
14+
Listen 0.0.0.0:443
15+
Listen [::]:443
16+
17+
User nobody
18+
Group nobody
19+
ServerAdmin root@localhost
20+
21+
<Directory />
22+
AllowOverride none
23+
</Directory>
24+
25+
<Directory /home>
26+
AllowOverride All
27+
Options +Includes -Indexes +ExecCGI
28+
</Directory>
29+
30+
DirectoryIndex index.php index.html
31+
32+
<Files ".ht*">
33+
Require all denied
34+
</Files>
35+
36+
ErrorLog "/usr/local/lsws/logs/error.log"
37+
LogLevel warn
38+
39+
LogFormat '"%v %h %l %u %t \"%r\" %>s %b"' combined
40+
CustomLog "/usr/local/lsws/logs/access.log" combined
41+
42+
43+
AddType application/x-compress .Z
44+
AddType application/x-gzip .gz .tgz
45+
AddType text/html .shtml
46+
AddOutputFilter INCLUDES .shtml
47+
#AddHandler cgi-script .cgi
48+
49+
AddDefaultCharset UTF-8
50+
51+
<IfModule mime_magic_module>
52+
MIMEMagicFile conf/magic
53+
</IfModule>
54+
55+
EnableSendfile on
56+
57+
SSLProtocol all -SSLv3 -TLSv1
58+
SSLHonorCipherOrder on
59+
60+
SSLCipherSuite ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:HIGH:!EDH-RSA-DES-CBC3-SHA:!DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4
61+
62+
<IfModule Litespeed>
63+
CacheRoot /home/lscache/
64+
</IfModule>
65+
66+
<VirtualHost *:80>
67+
ServerName RedisDynVhost_80
68+
DocumentRoot "/var/www/html"
69+
</VirtualHost>
70+
Listen 443
71+
<VirtualHost *:443>
72+
ServerName RedisDynVhost_443
73+
DocumentRoot "/var/www/html"
74+
SSLEngine on
75+
SSLCertificateFile "/usr/local/lscp/conf/cert.pem"
76+
SSLCertificateKeyFile "/usr/local/lscp/conf/key.pem"
77+
</VirtualHost>
78+
Include /usr/local/lsws/conf/modsec.conf

0 commit comments

Comments
 (0)