# Vida Chart — Apache HTTP (std) vhost include for cPanel/EA4
# Serves AutoSSL HTTP DCV from docroot, then redirects everything else to HTTPS.
# Install to:
#   /etc/apache2/conf.d/userdata/std/2_4/vidanexusai/chart.vidanexus.ai/vidachart.conf
# Then: /usr/local/cpanel/scripts/ensure_vhost_includes --user=vidanexusai
#       /usr/local/cpanel/scripts/rebuildhttpdconf && /usr/local/cpanel/scripts/restartsrv_httpd

# Do not proxy / redirect ACME + cPanel DCV — they must be reachable over plain HTTP.
ProxyPass /.well-known/ !

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/\.well-known/
RewriteRule ^/?(.*) https://chart.vidanexus.ai/$1 [R=301,L]
