# Sitio: reloj.gfarallon.com (Debian 13 + Apache)
# Copiar a: /etc/apache2/sites-available/reloj.gfarallon.com.conf

<VirtualHost *:80>
    ServerName reloj.gfarallon.com

    # Redirigir a HTTPS si ya usa Certbot en el servidor
    # RewriteEngine On
    # RewriteCond %{HTTPS} off
    # RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    ProxyPreserveHost On
    ProxyPass / http://127.0.0.1:8001/
    ProxyPassReverse / http://127.0.0.1:8001/

    ErrorLog ${APACHE_LOG_DIR}/reloj-gfarallon-error.log
    CustomLog ${APACHE_LOG_DIR}/reloj-gfarallon-access.log combined
</VirtualHost>

# Si ya tiene SSL para *.gfarallon.com o certificado propio, descomente y ajuste:
#
# <VirtualHost *:443>
#     ServerName reloj.gfarallon.com
#
#     SSLEngine on
#     SSLCertificateFile /etc/letsencrypt/live/reloj.gfarallon.com/fullchain.pem
#     SSLCertificateKeyFile /etc/letsencrypt/live/reloj.gfarallon.com/privkey.pem
#     Include /etc/letsencrypt/options-ssl-apache.conf
#
#     ProxyPreserveHost On
#     ProxyPass / http://127.0.0.1:8001/
#     ProxyPassReverse / http://127.0.0.1:8001/
#
#     ErrorLog ${APACHE_LOG_DIR}/reloj-gfarallon-ssl-error.log
#     CustomLog ${APACHE_LOG_DIR}/reloj-gfarallon-ssl-access.log combined
# </VirtualHost>
