From 53023cb46a98969ff6ec34a0a33e6a0343a41acb Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Mon, 1 Feb 2021 17:16:32 -0500 Subject: added config data --- .../etc/apache24/Includes/nextcloud.53hor.net.conf | 38 +++--- usr/local/etc/apache24/httpd.conf | 132 +++++++++++++++++++++ usr/local/etc/apache24/modules.d/001_mod_php.conf | 6 + 3 files changed, 158 insertions(+), 18 deletions(-) diff --git a/usr/local/etc/apache24/Includes/nextcloud.53hor.net.conf b/usr/local/etc/apache24/Includes/nextcloud.53hor.net.conf index 2bf47a9..9fd015f 100644 --- a/usr/local/etc/apache24/Includes/nextcloud.53hor.net.conf +++ b/usr/local/etc/apache24/Includes/nextcloud.53hor.net.conf @@ -1,20 +1,22 @@ - DocumentRoot "/usr/local/www/apache24/data/nextcloud" - ServerName - RewriteEngine on - RewriteCond %{SERVER_NAME} = - RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent] - #ErrorLog ${APACHE_LOG_DIR}/error.log - #CustomLog ${APACHE_LOG_DIR}/access.log combined + DocumentRoot "/usr/local/www/nextcloud" + ServerName nextcloud.53hor.net + RewriteEngine on + RewriteCond %{SERVER_NAME} =nextcloud.53hor.net + RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent] + #ErrorLog ${APACHE_LOG_DIR}/error.log + #CustomLog ${APACHE_LOG_DIR}/access.log combined - - Options +FollowSymlinks - AllowOverride All - - Dav off - - SetEnv HOME /usr/local/www/apache24/data/nextcloud - SetEnv HTTP_HOME /usr/local/www/apache24/data/nextcloud - Satisfy Any - - + + Options +FollowSymlinks + AllowOverride All + + + Dav off + + + SetEnv HOME /usr/local/www/nextcloud + SetEnv HTTP_HOME /usr/local/www/nextcloud + Satisfy Any + + diff --git a/usr/local/etc/apache24/httpd.conf b/usr/local/etc/apache24/httpd.conf index e69de29..89e144e 100644 --- a/usr/local/etc/apache24/httpd.conf +++ b/usr/local/etc/apache24/httpd.conf @@ -0,0 +1,132 @@ + +ServerRoot "/usr/local" + + +Listen 80 + +LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so +LoadModule authn_file_module libexec/apache24/mod_authn_file.so +LoadModule authn_core_module libexec/apache24/mod_authn_core.so +LoadModule authz_host_module libexec/apache24/mod_authz_host.so +LoadModule authz_groupfile_module libexec/apache24/mod_authz_groupfile.so +LoadModule authz_user_module libexec/apache24/mod_authz_user.so +LoadModule authz_core_module libexec/apache24/mod_authz_core.so +LoadModule access_compat_module libexec/apache24/mod_access_compat.so +LoadModule auth_basic_module libexec/apache24/mod_auth_basic.so +LoadModule reqtimeout_module libexec/apache24/mod_reqtimeout.so +LoadModule filter_module libexec/apache24/mod_filter.so +LoadModule mime_module libexec/apache24/mod_mime.so +LoadModule log_config_module libexec/apache24/mod_log_config.so +LoadModule env_module libexec/apache24/mod_env.so +LoadModule headers_module libexec/apache24/mod_headers.so +LoadModule setenvif_module libexec/apache24/mod_setenvif.so +LoadModule version_module libexec/apache24/mod_version.so +LoadModule unixd_module libexec/apache24/mod_unixd.so +LoadModule status_module libexec/apache24/mod_status.so +LoadModule autoindex_module libexec/apache24/mod_autoindex.so +LoadModule rewrite_module libexec/apache24/mod_rewrite.so +LoadModule php7_module libexec/apache24/libphp7.so + + + SetHandler php7-script + + DirectoryIndex index.php + + + + + +LoadModule dir_module libexec/apache24/mod_dir.so +LoadModule alias_module libexec/apache24/mod_alias.so + +IncludeOptional etc/apache24/modules.d/[0-9][0-9][0-9]_*.conf + + +User www +Group www + + + + +ServerAdmin you@example.com + + + + AllowOverride none + Require all denied + + + +DocumentRoot "/usr/local/www/apache24/data" + + Options Indexes FollowSymLinks + + AllowOverride None + + Require all granted + + + + DirectoryIndex index.html + + + + Require all denied + + +ErrorLog "/var/log/httpd-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 "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio + + + CustomLog "/var/log/httpd-access.log" common + + + + + + + ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/" + + + + + + + + AllowOverride None + Options None + Require all granted + + + + RequestHeader unset Proxy early + + + + TypesConfig etc/apache24/mime.types + + AddType application/x-compress .Z + AddType application/x-gzip .gz .tgz + + AddType application/x-httpd-php-source .phps + AddType application/x-httpd-php .php + + + +Include etc/apache24/extra/proxy-html.conf + + + +SSLRandomSeed startup builtin +SSLRandomSeed connect builtin + + +Include etc/apache24/Includes/*.conf diff --git a/usr/local/etc/apache24/modules.d/001_mod_php.conf b/usr/local/etc/apache24/modules.d/001_mod_php.conf index e69de29..f756a81 100644 --- a/usr/local/etc/apache24/modules.d/001_mod_php.conf +++ b/usr/local/etc/apache24/modules.d/001_mod_php.conf @@ -0,0 +1,6 @@ + + SetHandler application/x-httpd-php + + + SetHandler application/x-httpd-php-source + -- cgit v1.2.3