Initial
This commit is contained in:
5
install/rpm/httpd/hestia-event.conf
Normal file
5
install/rpm/httpd/hestia-event.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
<IfModule mpm_event_module>
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:fcgi://127.0.0.1:9000"
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
58
install/rpm/httpd/hestia.conf
Normal file
58
install/rpm/httpd/hestia.conf
Normal file
@@ -0,0 +1,58 @@
|
||||
ServerRoot "/etc/httpd"
|
||||
Include conf.modules.d/*.conf
|
||||
User apache
|
||||
Group apache
|
||||
ServerAdmin root@localhost
|
||||
|
||||
<Directory />
|
||||
AllowOverride All
|
||||
</Directory>
|
||||
|
||||
DocumentRoot "/var/www/html"
|
||||
<Directory "/var/www">
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<Directory "/var/www/html">
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
DirectoryIndex index.php index.html
|
||||
|
||||
<Files ".ht*">
|
||||
Require all denied
|
||||
</Files>
|
||||
|
||||
ErrorLog "logs/error_log"
|
||||
LogLevel warn
|
||||
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
||||
LogFormat "%b" bytes
|
||||
CustomLog "logs/access_log" combined
|
||||
|
||||
TypesConfig /etc/mime.types
|
||||
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
|
||||
|
||||
<IfModule remoteip_module>
|
||||
RemoteIPHeader X-Real-IP
|
||||
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||||
LogFormat "%a %l %u %t \"%r\" %>s %b" common
|
||||
</IfModule>
|
||||
|
||||
IncludeOptional conf.d/*.conf
|
||||
80
install/rpm/httpd/httpd.conf
Normal file
80
install/rpm/httpd/httpd.conf
Normal file
@@ -0,0 +1,80 @@
|
||||
#=========================================================================#
|
||||
# Hestia Apache configuration file #
|
||||
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST! #
|
||||
#=========================================================================#
|
||||
|
||||
ServerRoot "/etc/httpd"
|
||||
Timeout 30
|
||||
KeepAlive Off
|
||||
MaxKeepAliveRequests 100
|
||||
KeepAliveTimeout 10
|
||||
|
||||
<IfModule mpm_prefork_module>
|
||||
StartServers 8
|
||||
MinSpareServers 5
|
||||
MaxSpareServers 20
|
||||
ServerLimit 256
|
||||
MaxClients 200
|
||||
MaxRequestsPerChild 4000
|
||||
</IfModule>
|
||||
|
||||
<IfModule mpm_worker_module>
|
||||
StartServers 2
|
||||
MinSpareThreads 25
|
||||
MaxSpareThreads 75
|
||||
ThreadLimit 64
|
||||
ThreadsPerChild 25
|
||||
MaxClients 200
|
||||
MaxRequestsPerChild 4000
|
||||
</IfModule>
|
||||
|
||||
<IfModule mpm_event_module>
|
||||
StartServers 2
|
||||
MinSpareThreads 25
|
||||
MaxSpareThreads 75
|
||||
ThreadLimit 64
|
||||
ThreadsPerChild 25
|
||||
MaxClients 200
|
||||
MaxRequestsPerChild 4000
|
||||
</IfModule>
|
||||
|
||||
User apache
|
||||
Group apache
|
||||
|
||||
AccessFileName .htaccess
|
||||
|
||||
<Files ~ "^\.ht">
|
||||
Require all denied
|
||||
</Files>
|
||||
|
||||
TypesConfig /etc/mime.types
|
||||
DefaultType None
|
||||
HostnameLookups Off
|
||||
|
||||
ErrorLog /var/log/httpd/error.log
|
||||
LogLevel warn
|
||||
|
||||
# Include module configuration:
|
||||
Include conf.modules.d/*.conf
|
||||
|
||||
# Include list of ports to listen on and which to use for name based vhosts
|
||||
Include conf/ports.conf
|
||||
|
||||
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %O" common
|
||||
LogFormat "%{Referer}i -> %U" referer
|
||||
LogFormat "%{User-agent}i" agent
|
||||
LogFormat "%b" bytes
|
||||
|
||||
Include conf.d/*.conf
|
||||
IncludeOptional conf.d/domains/webmail.*.conf
|
||||
IncludeOptional conf.d/domains/*.conf
|
||||
|
||||
ErrorDocument 403 /error/403.html
|
||||
ErrorDocument 404 /error/404.html
|
||||
ErrorDocument 500 /error/50x.html
|
||||
ErrorDocument 501 /error/50x.html
|
||||
ErrorDocument 502 /error/50x.html
|
||||
ErrorDocument 503 /error/50x.html
|
||||
ErrorDocument 506 /error/50x.html
|
||||
6
install/rpm/httpd/status.conf
Normal file
6
install/rpm/httpd/status.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
Listen 127.0.0.1:8081
|
||||
<Location /server-status>
|
||||
SetHandler server-status
|
||||
Require ip 127.0.0.1
|
||||
# Require all granted
|
||||
</Location>
|
||||
18
install/rpm/httpd/unassigned.conf
Normal file
18
install/rpm/httpd/unassigned.conf
Normal file
@@ -0,0 +1,18 @@
|
||||
<VirtualHost directIP:directPORT>
|
||||
ServerName directIP
|
||||
DocumentRoot /var/www/html/
|
||||
Alias /error/ /var/www/document_errors/
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost directIP:directSSLPORT>
|
||||
ServerName directIP
|
||||
DocumentRoot /var/www/html/
|
||||
Alias /error/ /var/www/document_errors/
|
||||
|
||||
SSLEngine on
|
||||
SSLVerifyClient none
|
||||
SSLCertificateFile /usr/local/hestia/ssl/certificate.crt
|
||||
SSLCertificateKeyFile /usr/local/hestia/ssl/certificate.key
|
||||
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user