# TimeClock v3 - HTTP VirtualHost
# Speichern unter: /etc/apache2/sites-available/stechuhr3.tsschulz.de.conf

<VirtualHost *:80>
    ServerName stechuhr3.tsschulz.de
    ServerAdmin admin@tsschulz.de

    DocumentRoot /var/www/timeclock/frontend/dist

    ErrorLog ${APACHE_LOG_DIR}/stechuhr3-error.log
    CustomLog ${APACHE_LOG_DIR}/stechuhr3-access.log combined

    # Redirect zu HTTPS
    RewriteEngine On
    RewriteCond %{SERVER_NAME} =stechuhr3.tsschulz.de
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

