Skip to content

Commit

Permalink
redis hosting apache file
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Jan 11, 2020
1 parent e83ea7e commit 63411b3
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 0 deletions.
78 changes: 78 additions & 0 deletions install/litespeed/httpd-redis.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
#
# Warning: Do not edit this file directly, this file is autogenerated.
#
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #


ServerRoot "/usr/local/lsws"

Listen 0.0.0.0:80
Listen [::]:80
Listen 0.0.0.0:443
Listen [::]:443

User nobody
Group nobody
ServerAdmin root@localhost

<Directory />
AllowOverride none
</Directory>

<Directory /home>
AllowOverride All
Options +Includes -Indexes +ExecCGI
</Directory>

DirectoryIndex index.php index.html

<Files ".ht*">
Require all denied
</Files>

ErrorLog "/usr/local/lsws/logs/error.log"
LogLevel warn

LogFormat '"%v %h %l %u %t \"%r\" %>s %b"' combined
CustomLog "/usr/local/lsws/logs/access.log" combined


AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
#AddHandler cgi-script .cgi

AddDefaultCharset UTF-8

<IfModule mime_magic_module>
MIMEMagicFile conf/magic
</IfModule>

EnableSendfile on

SSLProtocol all -SSLv3 -TLSv1
SSLHonorCipherOrder on

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

<IfModule Litespeed>
CacheRoot /home/lscache/
</IfModule>

<VirtualHost *:80>
ServerName RedisDynVhost_80
DocumentRoot "/var/www/html"
</VirtualHost>
Listen 443
<VirtualHost *:443>
ServerName RedisDynVhost_443
DocumentRoot "/var/www/html"
SSLEngine on
SSLCertificateFile "/usr/local/lscp/conf/cert.pem"
SSLCertificateKeyFile "/usr/local/lscp/conf/key.pem"
</VirtualHost>
Include /usr/local/lsws/conf/modsec.conf
78 changes: 78 additions & 0 deletions serverStatus/litespeed/httpd-redis.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
#
# Warning: Do not edit this file directly, this file is autogenerated.
#
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #


ServerRoot "/usr/local/lsws"

Listen 0.0.0.0:80
Listen [::]:80
Listen 0.0.0.0:443
Listen [::]:443

User nobody
Group nobody
ServerAdmin root@localhost

<Directory />
AllowOverride none
</Directory>

<Directory /home>
AllowOverride All
Options +Includes -Indexes +ExecCGI
</Directory>

DirectoryIndex index.php index.html

<Files ".ht*">
Require all denied
</Files>

ErrorLog "/usr/local/lsws/logs/error.log"
LogLevel warn

LogFormat '"%v %h %l %u %t \"%r\" %>s %b"' combined
CustomLog "/usr/local/lsws/logs/access.log" combined


AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
#AddHandler cgi-script .cgi

AddDefaultCharset UTF-8

<IfModule mime_magic_module>
MIMEMagicFile conf/magic
</IfModule>

EnableSendfile on

SSLProtocol all -SSLv3 -TLSv1
SSLHonorCipherOrder on

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

<IfModule Litespeed>
CacheRoot /home/lscache/
</IfModule>

<VirtualHost *:80>
ServerName RedisDynVhost_80
DocumentRoot "/var/www/html"
</VirtualHost>
Listen 443
<VirtualHost *:443>
ServerName RedisDynVhost_443
DocumentRoot "/var/www/html"
SSLEngine on
SSLCertificateFile "/usr/local/lscp/conf/cert.pem"
SSLCertificateKeyFile "/usr/local/lscp/conf/key.pem"
</VirtualHost>
Include /usr/local/lsws/conf/modsec.conf

0 comments on commit 63411b3

Please sign in to comment.