FreeBSD 12.1 + Apache 2.4.x (Multiple TLD's + Multiple Sub-domains) w/ httpd.conf -- won't connect error (sub-domain)
Problem at hand: Sub-domain receiving a "won't connect" in browser. I cannot even receive an error message on either Apache or Web Browser (Firefox).
The domain: sharpenyoursword.org is TLD #1 && subdomain.sharpenyoursword.org is on it's own STATIC IP (I am trying to achieve the following):
TLD #1: Unique Static IP
TLD #2: Unique Static IP
TLD #3: Unique Static IP
TLD #4: Unique Static IP
TLD #5: Unique Static IP
TLD #1 Subdomains: Unique Static IP (Shared IP across *.sharpenyoursword.org)
TLD #2 Subdomains: Unique Static IP (Shared IP accross *.TLD #2)
TLD #3 Subdomains: Unique Static IP (Shared IP accross *.TLD #3)
TLD #4 Subdomains: Unique Static IP (Shared IP accross *.TLD #4)
TLD #5 Subdomains: Unique Static IP (Shared IP accross *.TLD #5)
Current httpd.conf:
Current VHOST Example of TLD #1 (Unique STATIC IP Subdomain of sharpenyoursword.org ; which sharpenyoursword.org has a different Unique STATIC IP)
Vhost Configuration Folder: (/Vhosts-Enabled)
File:
subdomain_SYSorg_001_genesis.sharpenyoursword.org.conf
File Contents: (subdomain_SYSorg_001_genesis.sharpenyoursword.org.conf):
The exact Web Browser Error is :
"Problem loading page"
Contents: "Unable to connect"
Thank you ahead of time if anyone knows what is causing this!
Best Regards,
Brandon Kastning
Problem at hand: Sub-domain receiving a "won't connect" in browser. I cannot even receive an error message on either Apache or Web Browser (Firefox).
The domain: sharpenyoursword.org is TLD #1 && subdomain.sharpenyoursword.org is on it's own STATIC IP (I am trying to achieve the following):
TLD #1: Unique Static IP
TLD #2: Unique Static IP
TLD #3: Unique Static IP
TLD #4: Unique Static IP
TLD #5: Unique Static IP
TLD #1 Subdomains: Unique Static IP (Shared IP across *.sharpenyoursword.org)
TLD #2 Subdomains: Unique Static IP (Shared IP accross *.TLD #2)
TLD #3 Subdomains: Unique Static IP (Shared IP accross *.TLD #3)
TLD #4 Subdomains: Unique Static IP (Shared IP accross *.TLD #4)
TLD #5 Subdomains: Unique Static IP (Shared IP accross *.TLD #5)
Current httpd.conf:
Code:
ServerRoot "/usr/local"
LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
Listen SERVER-IP(Same as TLD #1):80
# LOGGING - MAIN APACHE
ErrorLog "/usr/local/www/apache24/logs/error/apache24-main-error.log"
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog /usr/local/www/apache24/logs/access/apache24-access_log common
# ALT APACHE MODES (NON-PHP-FPM)
#LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
#LoadModule mpm_worker_module libexec/apache24/mod_mpm_worker.so
# BARE MINIMUM - REQUIRED
LoadModule authn_core_module libexec/apache24/mod_authn_core.so
LoadModule authz_core_module libexec/apache24/mod_authz_core.so
LoadModule log_config_module libexec/apache24/mod_log_config.so
LoadModule expires_module libexec/apache24/mod_expires.so
LoadModule headers_module libexec/apache24/mod_headers.so
LoadModule version_module libexec/apache24/mod_version.so
LoadModule unixd_module libexec/apache24/mod_unixd.so
LoadModule vhost_alias_module libexec/apache24/mod_vhost_alias.so
LoadModule dir_module libexec/apache24/mod_dir.so
LoadModule rewrite_module libexec/apache24/mod_rewrite.so
LoadModule mime_module libexec/apache24/mod_mime.so
LoadModule actions_module libexec/apache24/mod_actions.so
LoadModule alias_module libexec/apache24/mod_alias.so
LoadModule authz_host_module libexec/apache24/mod_authz_host.so
LoadModule access_compat_module libexec/apache24/mod_access_compat.so
LoadModule proxy_module libexec/apache24/mod_proxy.so
LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so
# CHOSEN MODULES - EXTENDABLES
LoadModule authz_user_module libexec/apache24/mod_authz_user.so
LoadModule auth_basic_module libexec/apache24/mod_auth_basic.so
LoadModule autoindex_module libexec/apache24/mod_autoindex.so
LoadModule authz_dbm_module libexec/apache24/mod_authz_dbm.so
LoadModule authz_owner_module libexec/apache24/mod_authz_owner.so
LoadModule authnz_fcgi_module libexec/apache24/mod_authnz_fcgi.so
# MOD SECURITY V2
LoadModule unique_id_module libexec/apache24/mod_unique_id.so
LoadModule security2_module libexec/apache24/mod_security2.so
Include /usr/local/etc/modsecurity/*.conf
# OWASP3 CORE BASE RULES FOR MOD SECURITY V2
Include /usr/local/etc/apache24/OWASP3/rules/*.conf
# MOD SECURITY V3
#LoadModule security3_module modules/mod_security3.so
# THIRD PARTY MODULES
#IncludeOptional etc/apache24/modules.d/[0-9][0-9][0-9]_*.conf
<IfModule unixd_module>
User www
Group www
</IfModule>
## Apache 2.4 Daemon Hardening
# Prevent Apache from sending identifying information to a Client
ServerTokens Prod
ServerSignature Off
## Vhosts-Enabled Directory - Custom
#IncludeOptional etc/apache24/Vhosts-Enabled/*.conf
# REMAINDER ROOT SERVER CONFIG
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"
</IfModule>
<IfModule cgid_module>
</IfModule>
<Directory "/usr/local/www/apache24/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
<IfModule headers_module>
</IfModule>
<IfModule mime_module>
TypesConfig etc/apache24/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>
<IfModule proxy_html_module>
Include etc/apache24/extra/proxy-html.conf
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Include etc/apache24/Includes/*.conf
Include etc/apache24/Vhosts-Enabled/*.conf
Current VHOST Example of TLD #1 (Unique STATIC IP Subdomain of sharpenyoursword.org ; which sharpenyoursword.org has a different Unique STATIC IP)
Vhost Configuration Folder: (/Vhosts-Enabled)
File:
subdomain_SYSorg_001_genesis.sharpenyoursword.org.conf
File Contents: (subdomain_SYSorg_001_genesis.sharpenyoursword.org.conf):
Code:
# TLD - SHARPENYOURSWORD.ORG
<VirtualHost 104.36.17.19:80>
ServerAdmin admin@sharpenyoursword.org
ServerName 104.36.17.19:80
DocumentRoot "/usr/local/www/apache24/data/sys_GENESIS/"
<Directory "/usr/local/www/apache24/data/sys_GENESIS/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
<Files ".ht*">
Require all denied
</Files>
ErrorLog "/usr/local/www/apache24/logs/error/subdomain_SYSorg_001_apache24-genesis.sharpenyoursword.org-error.log"
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog /usr/local/www/apache24/logs/access/subdomain_SYSorg_001_apache24-genesis.sharpenyoursword.org-access_log common
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
</IfModule>
</IfModule>
<FilesMatch "\.php$">
SetHandler "proxy:fcgi://127.0.0.1:9001"
</FilesMatch>
</VirtualHost>
The exact Web Browser Error is :
"Problem loading page"
Contents: "Unable to connect"
Thank you ahead of time if anyone knows what is causing this!
Best Regards,
Brandon Kastning