# 2022-11-16
# /usr/local/etc/apache24/httpd.conf.sample
# /usr/local/etc/apache24/httpd.conf
LoadModule cgi_module libexec/apache24/mod_cgi.so
LoadModule cgid_module libexec/apache24/mod_cgid.so
LoadModule php7_module libexec/apache24/libphp7.so
LoadModule userdir_module libexec/apache24/mod_userdir.so
LoadModule ssl_module libexec/apache24/mod_ssl.so
LoadModule rewrite_module libexec/apache24/mod_rewrite.so
Include etc/apache24/extra/httpd-vhosts.conf
Include etc/apache24/extra/httpd-vhosts-le-ssl.conf
Listen 443
ServerName www.your_domain.com
UserDir public_html
AddType application/x-httpd-php .php .phtml .inc .php3
AddType application/x-httpd-php-source .phps .phpsource
DirectoryIndex index.html index.htm index.php
LogLevel debug
AddDefaultCharset UTF-8
IndexOptions NameWidth=*
IndexOptions Charset=UTF-8
IndexOptions HTMLTable SuppressColumnsorting
AllowOverride None
Require all granted
Options ExecCGI
AddHandler cgi-script .cgi .pl
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS