# Apache static configuration
# Automatically generated

# Basic server configuration
PidFile "${:pid_file}"
Listen ${:ip}:8070
Listen ${:ip}:8080
Listen ${:ip}:8090
PHPINIDir ${:php_ini_dir}
ServerAdmin someone@email
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php .phtml .php5 .php4
AddType application/x-httpd-php-source .phps

# Log configuration
ErrorLog "${:error_log}"
LogLevel warn
LogFormat "%h %{REMOTE_USER}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %{REMOTE_USER}i %l %u %t \"%r\" %>s %b" common
CustomLog "${:access_log}" common

NameVirtualHost ${:ip}:8090
NameVirtualHost ${:ip}:8080
NameVirtualHost ${:ip}:8070
<VirtualHost ${:ip}:8070>
  #ServerName www.example.com
  
  # Directory protection
  <Directory />
      Options FollowSymLinks
      AllowOverride None
      Require all denied
  </Directory>
  
  <Directory ${:document_root}>
    Options FollowSymLinks
    AllowOverride All
    Require all granted
  </Directory>
  
  DocumentRoot ${:document_root}
  DirectoryIndex index.html index.php

</VirtualHost>

<VirtualHost ${:ip}:8080>
  #ServerName www.example.com
  
  # Directory protection
  <Directory />
      Options FollowSymLinks
      AllowOverride None
      Require all denied
  </Directory>
  
  <Directory ${:document_root}data/files/website/>
    Options FollowSymLinks
    AllowOverride All
    Require all granted
  </Directory>
  
  DocumentRoot ${:document_root}data/files/website/
  DirectoryIndex index.html index.php

</VirtualHost>

<VirtualHost ${:ip}:8090>
  #ServerName www.example.com
  
  # Directory protection
  <Directory />
      Options FollowSymLinks
      AllowOverride None
      Require all denied
  </Directory>
  
  <Directory ${:document_root}data/files/website2/>
    Options FollowSymLinks
    AllowOverride All
    Require all granted
  </Directory>
  
  DocumentRoot ${:document_root}data/files/website2/
  DirectoryIndex index.html index.php

</VirtualHost>

# List of modules
LoadModule unixd_module modules/mod_unixd.so
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule version_module modules/mod_version.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule headers_module modules/mod_headers.so
LoadModule dir_module modules/mod_dir.so
LoadModule php5_module modules/libphp5.so
LoadModule alias_module modules/mod_alias.so