

<IfModule mod_ssl.c>
<VirtualHost *:443>
    Include /etc/apache2/snippets/deny-sensitive.conf
  RewriteEngine On
  RewriteRule ^ - [R=404,L]
  ErrorDocument 404 "<h1>Site Not Configured</h1>"
  
  Include /etc/letsencrypt/options-ssl-apache.conf
  SSLCertificateFile /etc/letsencrypt/live/app-erp.nutramax.com/fullchain.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/app-erp.nutramax.com/privkey.pem  
    # 2026-10-30 JBACKUS: R000102 HSTS
    Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
</VirtualHost>
</IfModule>











<IfModule mod_ssl.c>
<VirtualHost *:443>Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
    Include /etc/apache2/snippets/deny-sensitive.conf
  ServerName app-erp.nutramax.com

  RewriteEngine On


  ProxyRequests Off
  ProxyPass / http://localhost:8787/ nocanon
  ProxyPassReverse / http://localhost:8787/

  
  Include /etc/letsencrypt/options-ssl-apache.conf
  SSLCertificateFile /etc/letsencrypt/live/app-erp.nutramax.com/fullchain.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/app-erp.nutramax.com/privkey.pem
    # 2026-10-30 JBACKUS: R000102 HSTS
    Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
</VirtualHost>
</IfModule>




<IfModule mod_ssl.c>
<VirtualHost *:443>Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
    Include /etc/apache2/snippets/deny-sensitive.conf
  ServerAdmin webalerts@nutramaxlabs.com
  DocumentRoot /var/www/html/nutramax.biz/erp/
  ServerName erp.nutramax.com

  <Directory /var/www/html/nutramax.biz/erp/ >
      Options -Indexes +FollowSymLinks
      AllowOverride All
      Require all granted
  </Directory>

  ErrorLog ${APACHE_LOG_DIR}/erp/_error.log
  CustomLog ${APACHE_LOG_DIR}/erp/_access.log combined

  <IfModule mod_dir.c>
      DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
  </IfModule> 

  
  Include /etc/letsencrypt/options-ssl-apache.conf
  SSLCertificateFile /etc/letsencrypt/live/app-erp.nutramax.com/fullchain.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/app-erp.nutramax.com/privkey.pem
    # 2026-10-30 JBACKUS: R000102 HSTS
    Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
</VirtualHost>
</IfModule>





