ServerAlias in beiden Vhosts, HTTP->HTTPS-Redirect fuer beide Namen, Zertifikat um crm.perinco.de erweitert. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
29 lines
966 B
Plaintext
29 lines
966 B
Plaintext
<IfModule mod_ssl.c>
|
|
<VirtualHost *:443>
|
|
ServerName pcrm.perinco.de
|
|
ServerAlias crm.perinco.de
|
|
DocumentRoot /var/www/perinco_CRM/dist
|
|
|
|
<Directory /var/www/perinco_CRM/dist>
|
|
Options -Indexes +FollowSymLinks
|
|
AllowOverride None
|
|
Require all granted
|
|
# Single Page Application: alle unbekannten Pfade auf index.html
|
|
FallbackResource /index.html
|
|
</Directory>
|
|
|
|
# API laeuft lokal auf 127.0.0.1:5006 und ist von aussen nur hierueber
|
|
# erreichbar.
|
|
ProxyPreserveHost On
|
|
ProxyPass /api http://127.0.0.1:5006/api
|
|
ProxyPassReverse /api http://127.0.0.1:5006/api
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/perinco_crm_error.log
|
|
CustomLog ${APACHE_LOG_DIR}/perinco_crm_access.log combined
|
|
|
|
SSLCertificateFile /etc/letsencrypt/live/pcrm.perinco.de/fullchain.pem
|
|
SSLCertificateKeyFile /etc/letsencrypt/live/pcrm.perinco.de/privkey.pem
|
|
Include /etc/letsencrypt/options-ssl-apache.conf
|
|
</VirtualHost>
|
|
</IfModule>
|