Stashbox/httpd.conf.dist

89 lines
3.0 KiB
Plaintext
Raw Normal View History

2023-01-21 03:57:55 +00:00
ServerRoot /usr/local
ServerName stashbox
2023-01-01 07:50:03 +00:00
Listen web.stashbox:80
Listen web.stashbox:443
2023-01-01 07:50:03 +00:00
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 auth_digest_module libexec/apache24/mod_auth_digest.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 ssl_module libexec/apache24/mod_ssl.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
2023-01-21 01:28:06 +00:00
LoadModule watchdog_module libexec/apache24/mod_watchdog.so
LoadModule md_module libexec/apache24/mod_md.so
2023-01-01 07:50:03 +00:00
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
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
MDCertificateAgreement accepted
MDContactEmail admin@stashbox
MDomain stashbox www.stashbox
2023-01-01 07:50:03 +00:00
<Directory />
AllowOverride none
Require all denied
</Directory>
<VirtualHost web.stashbox:443>
Servername stashbox
ServerAlias www.stashbox
2023-01-21 03:57:55 +00:00
<Location "/md-status">
SetHandler md-status
</Location>
DocumentRoot "/data"
<Directory "/data">
Options Indexes
AllowOverride Options Indexes FileInfo AuthConfig
AuthType Basic
AuthName "Who be you?"
AuthUserFile /usr/local/etc/apache24/.badpass
Require valid-user
</Directory>
<DirectoryMatch "^.*/\..*">
Require all denied
</DirectoryMatch>
<Files ".*">
Require all denied
</Files>
<Directory "/data/.theme">
Require all granted
</Directory>
DirectoryIndex index.html
2023-01-21 03:57:55 +00:00
SSLEngine on
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
CustomLog "/var/log/httpd-access.log" common
RequestHeader unset Proxy early
TypesConfig etc/apache24/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
2023-01-21 03:57:55 +00:00
</VirtualHost>
2023-01-01 07:50:03 +00:00
Include etc/apache24/Includes/*.conf