HEX
Server: Apache
System: Linux 3b2f6704f3ac 4.4.0-101-generic #124-Ubuntu SMP Fri Nov 10 18:29:59 UTC 2017 x86_64
User: (2182)
PHP: 7.4.33
Disabled: proc_open, passthru, escapeshellcmd, exec, shell_exec, system, ini_alter, dl, popen, php_check_syntax, show_source, highlight_file, symlink, link, openlog, apache_child_terminate
Upload Files
File: //usr/local/bin/docker-apache-vhost-create
#!/bin/bash

FILE=/etc/apache2/sites-available/000-default.conf

if [ -s "$FILE" ]; then
    [ -z "$_DEBUG" ] || echo "$FILE already exists."
else
   echo -e "<VirtualHost _default_:80>
   \tDocumentRoot \"$APACHE_DOCUMENT_ROOT\"
   \tDirectoryIndex Default.htm index.htm index.html Default.html index.php Default.php default.cshtml temporary.html
   \tErrorLog ${APACHE_LOG_DIR}/error.log
   \t<IfModule php_module>
   \t  php_admin_value memory_limit ${admin_value_memory_limit}
   \t  php_admin_value post_max_size ${admin_value_post_max_size}
   \t  php_admin_value upload_max_filesize ${admin_value_upload_max_filesize}
   \t  php_admin_value max_execution_time ${admin_value_max_execution_time}
   \t  php_admin_value max_input_time ${admin_value_max_input_time}
   \t  php_admin_value max_input_vars ${admin_value_max_input_vars}
   \t  php_admin_value track_errors ${admin_value_track_errors}
   \t  php_admin_value error_reporting 2147483647
   \t  php_admin_value display_errors ${admin_value_display_errors}
   \t  php_admin_value display_startup_errors ${admin_value_display_startup_errors}
   \t  php_admin_value short_open_tag ${admin_value_short_open_tag}
   \t  php_admin_value register_globals ${admin_value_register_globals}
   \t  php_admin_value upload_tmp_dir \"${admin_value_upload_tmp_dir}\"
   \t  php_admin_value open_basedir \"${admin_value_open_basedir}\"
   \t  php_admin_value sendmail_path \"${admin_value_sendmail_path}\"
   \t</IfModule>
   \t<IfModule http2_module>
   \t  Protocols h2 h2c http/1.1
   \t</IfModule>
</VirtualHost>" > $FILE
fi

[ -z "$_DEBUG" ] || cat $FILE