# VirtualHost configuration for DDDS domains (Docker environment)

<VirtualHost *:80>
    ServerAdmin admin@media-trust.com
    DocumentRoot "/var/www/html3/web/brnch"
    ServerName brnch.ddds.winlogic.site
    ErrorLog /var/log/apache2/ddds_brnch_error.log
    CustomLog /var/log/apache2/ddds_brnch_access.log combined
    <Directory "/var/www/html3/web/brnch">
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex index.html index.php
    </Directory>
    Alias /error/ "/var/www/html3/web/error/"
    ErrorDocument 403 /error/index.html
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin admin@media-trust.com
    DocumentRoot "/var/www/html3/web/brnch"
    ServerName brnch.ddds2.winlogic.site
    ErrorLog /var/log/apache2/ddds2_brnch_error.log
    CustomLog /var/log/apache2/ddds2_brnch_access.log combined
    <Directory "/var/www/html3/web/brnch">
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex index.html index.php
    </Directory>
    Alias /error/ "/var/www/html3/web/error/"
    ErrorDocument 403 /error/index.html
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin admin@media-trust.com
    ServerName hdqrs.ddds.winlogic.site
    DocumentRoot "/var/www/html3/web/hdqrs"
    ErrorLog /var/log/apache2/ddds_hdqrs_error.log
    CustomLog /var/log/apache2/ddds_hdqrs_access.log combined
    <Directory "/var/www/html3/web/hdqrs">
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex index.html index.php
    </Directory>
    Alias /error/ "/var/www/html3/web/error/"
    ErrorDocument 403 /error/index.html
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin admin@media-trust.com
    ServerName hdqrs.ddds2.winlogic.site
    DocumentRoot "/var/www/html3/web/hdqrs"
    ErrorLog /var/log/apache2/ddds2_hdqrs_error.log
    CustomLog /var/log/apache2/ddds2_hdqrs_access.log combined
    <Directory "/var/www/html3/web/hdqrs">
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex index.html index.php
    </Directory>
    Alias /error/ "/var/www/html3/web/error/"
    ErrorDocument 403 /error/index.html
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin admin@media-trust.com
    ServerName ddds.ddds.winlogic.site
    DocumentRoot "/var/www/html3/web/ddds"
    ErrorLog /var/log/apache2/ddds_ddds_error.log
    CustomLog /var/log/apache2/ddds_ddds_access.log combined
    <Directory "/var/www/html3/web/ddds">
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex index.html index.php
    </Directory>
    Alias /error/ "/var/www/html3/web/error/"
    ErrorDocument 403 /error/index.html
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin admin@media-trust.com
    ServerName ddds-app.ddds.winlogic.site
    DocumentRoot "/var/www/html3/web/ddds"
    ErrorLog /var/log/apache2/ddds_app_error.log
    CustomLog /var/log/apache2/ddds_app_access.log combined
    <Directory "/var/www/html3/web/ddds">
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex index.html index.php
    </Directory>
    Alias /error/ "/var/www/html3/web/error/"
    ErrorDocument 403 /error/index.html
</VirtualHost>

<VirtualHost *:80>
    ServerName ddds.ddds2.winlogic.site
    DocumentRoot "/var/www/html3/web/ddds"
    ErrorLog /var/log/apache2/ddds2_ddds_error.log
    CustomLog /var/log/apache2/ddds2_ddds_access.log combined
    <Directory "/var/www/html3/web/ddds">
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex index.html index.php
    </Directory>
    Alias /error/ "/var/www/html3/web/error/"
    ErrorDocument 403 /error/index.html
</VirtualHost>

# Special VirtualHosts for port 82 (API access)
<VirtualHost *:82>
    ServerAdmin webmaster@ddds.jp
    DocumentRoot "/var/www/html3/web/ddds"
    ServerName ddds-api.winlogic.site
    ErrorLog /var/log/apache2/ddds_api_error.log
    CustomLog /var/log/apache2/ddds_api_access.log combined
    <Directory "/var/www/html3/web/ddds">
        Options -Indexes +FollowSymLinks
        AllowOverride All
        Require all granted
        # Allow API access
        SetEnvIf User-Agent "curl" allowed_user
        DirectoryIndex index.html index.php
    </Directory>
</VirtualHost>

<VirtualHost *:82>
    ServerAdmin webmaster@ddds.jp
    DocumentRoot "/var/www/html3/web/tracer"
    ServerName tracer-api.winlogic.site
    ErrorLog /var/log/apache2/tracer_api_error.log
    CustomLog /var/log/apache2/tracer_api_access.log combined
    <Directory "/var/www/html3/web/tracer">
        Options -Indexes +FollowSymLinks
        AllowOverride All
        Require all granted
        # Allow API access
        SetEnvIf User-Agent "curl" allowed_user
        DirectoryIndex index.html index.php
    </Directory>
</VirtualHost>