HEX
Server: Apache
System: Linux dinesh8149 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: usesambura1 (1212012)
PHP: 7.0.33
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //etc/httpd/conf/httpd.conf
ServerRoot "/etc/httpd"
Listen 81
AcceptFilter http none

Include conf.modules.d/*.conf
User apache
Group apache
ServerAdmin root@localhost
HostnameLookups Off
ServerSignature Off
ServerTokens ProductOnly

EnableSendfile on

<IfModule event.c>
        #ServerLimit 100
        #MaxRequestWorkers 2000
        #AsyncRequestWorkerFactor 5
        #ThreadsPerChild 20
        #MaxConnectionsPerChild 300

        ServerLimit 100
        MaxRequestWorkers 2000
        AsyncRequestWorkerFactor 3
        ThreadsPerChild 20
        #MaxConnectionsPerChild 100
        GracefulShutdownTimeout 5
        #MinSpareThreads 2500
        #MaxSpareThreads 7500
</IfModule>

<IfModule worker.c>
        #MaxRequestWorkers      1024
        #ServerLimit            16
        #StartServers           2
        #MinSpareThreads        25
        #MaxSpareThreads        75
        #ThreadsPerChild        64
        #MaxConnectionsPerChild 1000


        #https://www.tectut.com/2016/04/workaround-for-scoreboard-is-full-not-at-maxrequestworkers/
        MaxRequestWorkers       2048
        ThreadsPerChild         64
        ServerLimit             32
        #MinSpareThreads         512
        #MaxSpareThreads         1536
        StartServers            2
        MaxConnectionsPerChild  500
        GracefulShutdownTimeout 5
</IfModule>

Timeout 300
KeepAlive On
MaxKeepAliveRequests 500
KeepAliveTimeout 5

#<IfModule mpm_event_module>
#    ThreadLimit 64
#    ThreadsPerChild 32
#    ServerLimit 32
#    MaxRequestWorkers 1024
#    Timeout 60
#    KeepAlive On
#    MaxKeepAliveRequests 100
#    KeepAliveTimeout 5
#    GracefulShutdownTimeout 30
#    MaxConnectionsPerChild 1000
#</IfModule>

### Because NGINX is reverse proxing to Apache ###
<IfModule remoteip_module>
    RemoteIPHeader X-Forwarded-For
    RemoteIPInternalProxy 127.0.0.1
</IfModule>

<Directory />
    AllowOverride none
    Require all denied
</Directory>

DocumentRoot "/var/www/html"
<Directory "/var/www">
    AllowOverride None
    Require all granted
</Directory>

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

<Files ".ht*">
    Require all denied
</Files>

<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
</Directory>

<IfModule mime_module>
    TypesConfig /etc/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
</IfModule>

AddDefaultCharset UTF-8

<IfModule mime_magic_module>
    MIMEMagicFile conf/magic
</IfModule>

Alias /error/ "/usr/share/httpd/error/"
Alias /lwerror/ "/var/www/html/errors/errorpages/"

<IfModule mod_negotiation.c>
    <IfModule mod_include.c>
        <Directory "/usr/share/httpd/error">
            AllowOverride None
            Options IncludesNoExec
            AddOutputFilter Includes html htm
            AddHandler type-map var
            Require all granted
            LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
            ForceLanguagePriority Prefer Fallback
        </Directory>    
        <Directory "/var/www/html/errors/errorpages">
            AllowOverride None
            Options IncludesNoExec
            AddOutputFilter Includes html htm
            AddHandler type-map var
            Require all granted
            LanguagePriority en es pt-br de fr it j ko nl pl ro sv
            ForceLanguagePriority Prefer Fallback
        </Directory>
        ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
        ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
        ErrorDocument 403 /lwerror/403.htm
        ErrorDocument 404 /lwerror/404.htm
        ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
        ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
        ErrorDocument 410 /error/HTTP_GONE.html.var
        ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
        ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
        ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
        ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
        ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
        ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
        ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
        ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
        ErrorDocument 503 /lwerror/503.htm
        ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
    </IfModule>
</IfModule>

### CUSTOMER DIRECTORIES DEFAULT CONFIGURATION ###
# Here we define global redirect rules #
<Directory /home>
    Options FollowSymLinks
</Directory>

<IfModule mod_rewrite.c>
        RewriteEngine On
        ## Internal Redirect Loop Protection
        RewriteCond %{ENV:REDIRECT_STATUS} 200
        RewriteRule ^ - [L]
 </IfModule>

<Directory /home/*/public_html>
    Options -Indexes -ExecCGI -FollowSymLinks +Includes +SymLinksIfOwnerMatch
    AllowOverride All
    Require all granted
    IndexIgnore *
</Directory>

<Directory /home/*/*/*/*/*/public_html>
    Options -Indexes -ExecCGI -FollowSymLinks +Includes +SymLinksIfOwnerMatch
    AllowOverride All
    Require all granted
    IndexIgnore *
</Directory>


### LOGS ###
ErrorLog "logs/error_log"
LogLevel warn
<IfModule log_config_module>
    LogFormat "%h|%u|%t|%{REQUEST_SCHEME}x|\"%r\"|%>s|%b|\"%{Referer}i\"|\"%{User-Agent}i\"|%{X-Forwarded-For}i" combined
    LogFormat "%h|%l|%u|%t|\"%r\"|%>s|%b" common
    <IfModule logio_module>
      LogFormat "%h|%u|%t|%{REQUEST_SCHEME}x|\"%r\"|%>s|%b|\"%{Referer}i\"|\"%{User-Agent}i\"|%{X-Forwarded-For}i|%I|%O|%S" combinedio
    </IfModule>
</IfModule>
CustomLog |/etc/httpd/logger "%{LOG_SUBDIR}e!%a|%l|%u|%t|%{REQUEST_SCHEME}x|\"%r\"|%>s|%b|\"%{Referer}i\"|\"%{User-Agent}i\"|%I|%O|%S"

### INCLUDES ###
IncludeOptional conf.d/*.conf
IncludeOptional /etc/locaweb/hospedagem/*.conf