From 596a8cf4126513d45d5ab49847d262415a2c3c21 Mon Sep 17 00:00:00 2001 From: OSPanel <93676052+OSPanel@users.noreply.github.com> Date: Tue, 23 Apr 2024 19:56:15 +0300 Subject: [PATCH] Update httpd.conf --- .../ospanel_data/default/templates/httpd.conf | 76 +++++++++++++++-- .../ospanel_data/default/templates/httpd.conf | 76 +++++++++++++++-- .../ospanel_data/default/templates/httpd.conf | 76 +++++++++++++++-- .../ospanel_data/default/templates/httpd.conf | 84 ++++++++++++++++--- .../ospanel_data/default/templates/httpd.conf | 76 +++++++++++++++-- .../ospanel_data/default/templates/httpd.conf | 76 +++++++++++++++-- .../ospanel_data/default/templates/httpd.conf | 76 +++++++++++++++-- 7 files changed, 487 insertions(+), 53 deletions(-) diff --git a/modules/PHP-7.2/ospanel_data/default/templates/httpd.conf b/modules/PHP-7.2/ospanel_data/default/templates/httpd.conf index 24a35b24b..602ec4fbe 100644 --- a/modules/PHP-7.2/ospanel_data/default/templates/httpd.conf +++ b/modules/PHP-7.2/ospanel_data/default/templates/httpd.conf @@ -504,7 +504,7 @@ AddCharset shift_jis .shift_jis .sjis # Virtual Host Macros # ----------------------------------------------------------------------------------- - + ServerName default @@ -538,7 +538,7 @@ AddCharset shift_jis .shift_jis .sjis - + ServerName default @@ -577,7 +577,34 @@ AddCharset shift_jis .shift_jis .sjis - + + + + AllowOverride All + Options +Indexes +IncludesNoExec +Includes +ExecCGI + Require all granted + + + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + + ServerName $host + ServerAlias $aliases + DocumentRoot "$public_dir" + + Protocols h2c http/1.1 + + CustomLog "{root_dir}/logs/domains/$host_apache_access.log" $log_format + ErrorLog "{root_dir}/logs/domains/$host_apache_error.log" + php_value error_log "{root_dir}/logs/domains/$host_php_error.log" + + + + AllowOverride All @@ -610,7 +637,40 @@ AddCharset shift_jis .shift_jis .sjis - + + + + + AllowOverride All + Options +Indexes +IncludesNoExec +Includes +ExecCGI + Require all granted + + + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + + ServerName $host + ServerAlias $aliases + DocumentRoot "$public_dir" + SSLEngine on + SSLCertificateFile "$ssl_cert_file" + SSLCertificateKeyFile "$ssl_key_file" + #Header always set Strict-Transport-Security "max-age=94608000" + + Protocols h2 http/1.1 + + CustomLog "{root_dir}/logs/domains/$host_apache_access.log" $log_format + ErrorLog "{root_dir}/logs/domains/$host_apache_error.log" + php_value error_log "{root_dir}/logs/domains/$host_php_error.log" + + + + + @@ -655,7 +715,9 @@ AddCharset shift_jis .shift_jis .sjis {apache_hosts} -UndefMacro DefaultHost -UndefMacro DefaultSSLHost +UndefMacro Default_Host +UndefMacro Default_SSL_Host UndefMacro Host -UndefMacro SSLHost +UndefMacro CGI_Host +UndefMacro SSL_Host +UndefMacro SSL_CGI_Host diff --git a/modules/PHP-7.3/ospanel_data/default/templates/httpd.conf b/modules/PHP-7.3/ospanel_data/default/templates/httpd.conf index 24a35b24b..602ec4fbe 100644 --- a/modules/PHP-7.3/ospanel_data/default/templates/httpd.conf +++ b/modules/PHP-7.3/ospanel_data/default/templates/httpd.conf @@ -504,7 +504,7 @@ AddCharset shift_jis .shift_jis .sjis # Virtual Host Macros # ----------------------------------------------------------------------------------- - + ServerName default @@ -538,7 +538,7 @@ AddCharset shift_jis .shift_jis .sjis - + ServerName default @@ -577,7 +577,34 @@ AddCharset shift_jis .shift_jis .sjis - + + + + AllowOverride All + Options +Indexes +IncludesNoExec +Includes +ExecCGI + Require all granted + + + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + + ServerName $host + ServerAlias $aliases + DocumentRoot "$public_dir" + + Protocols h2c http/1.1 + + CustomLog "{root_dir}/logs/domains/$host_apache_access.log" $log_format + ErrorLog "{root_dir}/logs/domains/$host_apache_error.log" + php_value error_log "{root_dir}/logs/domains/$host_php_error.log" + + + + AllowOverride All @@ -610,7 +637,40 @@ AddCharset shift_jis .shift_jis .sjis - + + + + + AllowOverride All + Options +Indexes +IncludesNoExec +Includes +ExecCGI + Require all granted + + + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + + ServerName $host + ServerAlias $aliases + DocumentRoot "$public_dir" + SSLEngine on + SSLCertificateFile "$ssl_cert_file" + SSLCertificateKeyFile "$ssl_key_file" + #Header always set Strict-Transport-Security "max-age=94608000" + + Protocols h2 http/1.1 + + CustomLog "{root_dir}/logs/domains/$host_apache_access.log" $log_format + ErrorLog "{root_dir}/logs/domains/$host_apache_error.log" + php_value error_log "{root_dir}/logs/domains/$host_php_error.log" + + + + + @@ -655,7 +715,9 @@ AddCharset shift_jis .shift_jis .sjis {apache_hosts} -UndefMacro DefaultHost -UndefMacro DefaultSSLHost +UndefMacro Default_Host +UndefMacro Default_SSL_Host UndefMacro Host -UndefMacro SSLHost +UndefMacro CGI_Host +UndefMacro SSL_Host +UndefMacro SSL_CGI_Host diff --git a/modules/PHP-7.4/ospanel_data/default/templates/httpd.conf b/modules/PHP-7.4/ospanel_data/default/templates/httpd.conf index 24a35b24b..602ec4fbe 100644 --- a/modules/PHP-7.4/ospanel_data/default/templates/httpd.conf +++ b/modules/PHP-7.4/ospanel_data/default/templates/httpd.conf @@ -504,7 +504,7 @@ AddCharset shift_jis .shift_jis .sjis # Virtual Host Macros # ----------------------------------------------------------------------------------- - + ServerName default @@ -538,7 +538,7 @@ AddCharset shift_jis .shift_jis .sjis - + ServerName default @@ -577,7 +577,34 @@ AddCharset shift_jis .shift_jis .sjis - + + + + AllowOverride All + Options +Indexes +IncludesNoExec +Includes +ExecCGI + Require all granted + + + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + + ServerName $host + ServerAlias $aliases + DocumentRoot "$public_dir" + + Protocols h2c http/1.1 + + CustomLog "{root_dir}/logs/domains/$host_apache_access.log" $log_format + ErrorLog "{root_dir}/logs/domains/$host_apache_error.log" + php_value error_log "{root_dir}/logs/domains/$host_php_error.log" + + + + AllowOverride All @@ -610,7 +637,40 @@ AddCharset shift_jis .shift_jis .sjis - + + + + + AllowOverride All + Options +Indexes +IncludesNoExec +Includes +ExecCGI + Require all granted + + + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + + ServerName $host + ServerAlias $aliases + DocumentRoot "$public_dir" + SSLEngine on + SSLCertificateFile "$ssl_cert_file" + SSLCertificateKeyFile "$ssl_key_file" + #Header always set Strict-Transport-Security "max-age=94608000" + + Protocols h2 http/1.1 + + CustomLog "{root_dir}/logs/domains/$host_apache_access.log" $log_format + ErrorLog "{root_dir}/logs/domains/$host_apache_error.log" + php_value error_log "{root_dir}/logs/domains/$host_php_error.log" + + + + + @@ -655,7 +715,9 @@ AddCharset shift_jis .shift_jis .sjis {apache_hosts} -UndefMacro DefaultHost -UndefMacro DefaultSSLHost +UndefMacro Default_Host +UndefMacro Default_SSL_Host UndefMacro Host -UndefMacro SSLHost +UndefMacro CGI_Host +UndefMacro SSL_Host +UndefMacro SSL_CGI_Host diff --git a/modules/PHP-8.0/ospanel_data/default/templates/httpd.conf b/modules/PHP-8.0/ospanel_data/default/templates/httpd.conf index 89bdfa918..144979ba2 100644 --- a/modules/PHP-8.0/ospanel_data/default/templates/httpd.conf +++ b/modules/PHP-8.0/ospanel_data/default/templates/httpd.conf @@ -504,7 +504,7 @@ AddCharset shift_jis .shift_jis .sjis # Virtual Host Macros # ----------------------------------------------------------------------------------- - + ServerName default @@ -538,7 +538,7 @@ AddCharset shift_jis .shift_jis .sjis - + ServerName default @@ -577,7 +577,7 @@ AddCharset shift_jis .shift_jis .sjis - + AllowOverride All @@ -585,10 +585,37 @@ AddCharset shift_jis .shift_jis .sjis Require all granted - AddOutputFilterByType BROTLI_COMPRESS text/plain text/html text/css text/xml text/javascript application/javascript application/json text/json + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component - AddOutputFilterByType DEFLATE text/plain text/html text/css text/xml text/javascript application/javascript application/json text/json + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + + ServerName $host + ServerAlias $aliases + DocumentRoot "$public_dir" + + Protocols h2c http/1.1 + + CustomLog "{root_dir}/logs/domains/$host_apache_access.log" $log_format + ErrorLog "{root_dir}/logs/domains/$host_apache_error.log" + php_value error_log "{root_dir}/logs/domains/$host_php_error.log" + + + + + + + AllowOverride All + Options +Indexes +IncludesNoExec +Includes +ExecCGI + Require all granted + + + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component @@ -610,7 +637,7 @@ AddCharset shift_jis .shift_jis .sjis - + @@ -619,10 +646,43 @@ AddCharset shift_jis .shift_jis .sjis Require all granted - AddOutputFilterByType BROTLI_COMPRESS text/plain text/html text/css text/xml text/javascript application/javascript application/json text/json + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component - AddOutputFilterByType DEFLATE text/plain text/html text/css text/xml text/javascript application/javascript application/json text/json + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + + ServerName $host + ServerAlias $aliases + DocumentRoot "$public_dir" + SSLEngine on + SSLCertificateFile "$ssl_cert_file" + SSLCertificateKeyFile "$ssl_key_file" + #Header always set Strict-Transport-Security "max-age=94608000" + + Protocols h2 http/1.1 + + CustomLog "{root_dir}/logs/domains/$host_apache_access.log" $log_format + ErrorLog "{root_dir}/logs/domains/$host_apache_error.log" + php_value error_log "{root_dir}/logs/domains/$host_php_error.log" + + + + + + + + + AllowOverride All + Options +Indexes +IncludesNoExec +Includes +ExecCGI + Require all granted + + + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component @@ -655,7 +715,9 @@ AddCharset shift_jis .shift_jis .sjis {apache_hosts} -UndefMacro DefaultHost -UndefMacro DefaultSSLHost +UndefMacro Default_Host +UndefMacro Default_SSL_Host UndefMacro Host -UndefMacro SSLHost +UndefMacro CGI_Host +UndefMacro SSL_Host +UndefMacro SSL_CGI_Host diff --git a/modules/PHP-8.1/ospanel_data/default/templates/httpd.conf b/modules/PHP-8.1/ospanel_data/default/templates/httpd.conf index 97c7d8d2d..144979ba2 100644 --- a/modules/PHP-8.1/ospanel_data/default/templates/httpd.conf +++ b/modules/PHP-8.1/ospanel_data/default/templates/httpd.conf @@ -504,7 +504,7 @@ AddCharset shift_jis .shift_jis .sjis # Virtual Host Macros # ----------------------------------------------------------------------------------- - + ServerName default @@ -538,7 +538,7 @@ AddCharset shift_jis .shift_jis .sjis - + ServerName default @@ -577,7 +577,34 @@ AddCharset shift_jis .shift_jis .sjis - + + + + AllowOverride All + Options +Indexes +IncludesNoExec +Includes +ExecCGI + Require all granted + + + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + + ServerName $host + ServerAlias $aliases + DocumentRoot "$public_dir" + + Protocols h2c http/1.1 + + CustomLog "{root_dir}/logs/domains/$host_apache_access.log" $log_format + ErrorLog "{root_dir}/logs/domains/$host_apache_error.log" + php_value error_log "{root_dir}/logs/domains/$host_php_error.log" + + + + AllowOverride All @@ -610,7 +637,40 @@ AddCharset shift_jis .shift_jis .sjis - + + + + + AllowOverride All + Options +Indexes +IncludesNoExec +Includes +ExecCGI + Require all granted + + + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + + ServerName $host + ServerAlias $aliases + DocumentRoot "$public_dir" + SSLEngine on + SSLCertificateFile "$ssl_cert_file" + SSLCertificateKeyFile "$ssl_key_file" + #Header always set Strict-Transport-Security "max-age=94608000" + + Protocols h2 http/1.1 + + CustomLog "{root_dir}/logs/domains/$host_apache_access.log" $log_format + ErrorLog "{root_dir}/logs/domains/$host_apache_error.log" + php_value error_log "{root_dir}/logs/domains/$host_php_error.log" + + + + + @@ -655,7 +715,9 @@ AddCharset shift_jis .shift_jis .sjis {apache_hosts} -UndefMacro DefaultHost -UndefMacro DefaultSSLHost +UndefMacro Default_Host +UndefMacro Default_SSL_Host UndefMacro Host -UndefMacro SSLHost +UndefMacro CGI_Host +UndefMacro SSL_Host +UndefMacro SSL_CGI_Host diff --git a/modules/PHP-8.2/ospanel_data/default/templates/httpd.conf b/modules/PHP-8.2/ospanel_data/default/templates/httpd.conf index 97c7d8d2d..144979ba2 100644 --- a/modules/PHP-8.2/ospanel_data/default/templates/httpd.conf +++ b/modules/PHP-8.2/ospanel_data/default/templates/httpd.conf @@ -504,7 +504,7 @@ AddCharset shift_jis .shift_jis .sjis # Virtual Host Macros # ----------------------------------------------------------------------------------- - + ServerName default @@ -538,7 +538,7 @@ AddCharset shift_jis .shift_jis .sjis - + ServerName default @@ -577,7 +577,34 @@ AddCharset shift_jis .shift_jis .sjis - + + + + AllowOverride All + Options +Indexes +IncludesNoExec +Includes +ExecCGI + Require all granted + + + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + + ServerName $host + ServerAlias $aliases + DocumentRoot "$public_dir" + + Protocols h2c http/1.1 + + CustomLog "{root_dir}/logs/domains/$host_apache_access.log" $log_format + ErrorLog "{root_dir}/logs/domains/$host_apache_error.log" + php_value error_log "{root_dir}/logs/domains/$host_php_error.log" + + + + AllowOverride All @@ -610,7 +637,40 @@ AddCharset shift_jis .shift_jis .sjis - + + + + + AllowOverride All + Options +Indexes +IncludesNoExec +Includes +ExecCGI + Require all granted + + + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + + ServerName $host + ServerAlias $aliases + DocumentRoot "$public_dir" + SSLEngine on + SSLCertificateFile "$ssl_cert_file" + SSLCertificateKeyFile "$ssl_key_file" + #Header always set Strict-Transport-Security "max-age=94608000" + + Protocols h2 http/1.1 + + CustomLog "{root_dir}/logs/domains/$host_apache_access.log" $log_format + ErrorLog "{root_dir}/logs/domains/$host_apache_error.log" + php_value error_log "{root_dir}/logs/domains/$host_php_error.log" + + + + + @@ -655,7 +715,9 @@ AddCharset shift_jis .shift_jis .sjis {apache_hosts} -UndefMacro DefaultHost -UndefMacro DefaultSSLHost +UndefMacro Default_Host +UndefMacro Default_SSL_Host UndefMacro Host -UndefMacro SSLHost +UndefMacro CGI_Host +UndefMacro SSL_Host +UndefMacro SSL_CGI_Host diff --git a/modules/PHP-8.3/ospanel_data/default/templates/httpd.conf b/modules/PHP-8.3/ospanel_data/default/templates/httpd.conf index 97c7d8d2d..144979ba2 100644 --- a/modules/PHP-8.3/ospanel_data/default/templates/httpd.conf +++ b/modules/PHP-8.3/ospanel_data/default/templates/httpd.conf @@ -504,7 +504,7 @@ AddCharset shift_jis .shift_jis .sjis # Virtual Host Macros # ----------------------------------------------------------------------------------- - + ServerName default @@ -538,7 +538,7 @@ AddCharset shift_jis .shift_jis .sjis - + ServerName default @@ -577,7 +577,34 @@ AddCharset shift_jis .shift_jis .sjis - + + + + AllowOverride All + Options +Indexes +IncludesNoExec +Includes +ExecCGI + Require all granted + + + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + + ServerName $host + ServerAlias $aliases + DocumentRoot "$public_dir" + + Protocols h2c http/1.1 + + CustomLog "{root_dir}/logs/domains/$host_apache_access.log" $log_format + ErrorLog "{root_dir}/logs/domains/$host_apache_error.log" + php_value error_log "{root_dir}/logs/domains/$host_php_error.log" + + + + AllowOverride All @@ -610,7 +637,40 @@ AddCharset shift_jis .shift_jis .sjis - + + + + + AllowOverride All + Options +Indexes +IncludesNoExec +Includes +ExecCGI + Require all granted + + + AddOutputFilterByType BROTLI_COMPRESS application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + AddOutputFilterByType DEFLATE application/atom+xml application/json text/json text/html text/xml text/javascript application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/rtf application/pdf application/xhtml+xml application/xslt+xml application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject font/woff font/woff2 font/ttf font/collection font/otf image/vnd.microsoft.icon image/x-icon image/svg+xml text/css text/csv text/plain text/markdown text/calendar text/vcard text/vtt text/cache-manifest text/vnd.rim.location.xloc text/x-component + + + + ServerName $host + ServerAlias $aliases + DocumentRoot "$public_dir" + SSLEngine on + SSLCertificateFile "$ssl_cert_file" + SSLCertificateKeyFile "$ssl_key_file" + #Header always set Strict-Transport-Security "max-age=94608000" + + Protocols h2 http/1.1 + + CustomLog "{root_dir}/logs/domains/$host_apache_access.log" $log_format + ErrorLog "{root_dir}/logs/domains/$host_apache_error.log" + php_value error_log "{root_dir}/logs/domains/$host_php_error.log" + + + + + @@ -655,7 +715,9 @@ AddCharset shift_jis .shift_jis .sjis {apache_hosts} -UndefMacro DefaultHost -UndefMacro DefaultSSLHost +UndefMacro Default_Host +UndefMacro Default_SSL_Host UndefMacro Host -UndefMacro SSLHost +UndefMacro CGI_Host +UndefMacro SSL_Host +UndefMacro SSL_CGI_Host