bdlg2023.conf 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <VirtualHost *:80>
  2. ServerAdmin clovis@jaquin.fr
  3. ServerName bdlg-planner.jaquin.fr
  4. DocumentRoot /home/clovis/bdlg-2023/www
  5. <Directory /home/clovis/bdlg-2023/www>
  6. AllowOverride All
  7. </Directory>
  8. Redirect 301 / https://bdlg-planner.jaquin.fr/
  9. RewriteEngine on
  10. RewriteCond %{SERVER_NAME} =bdlg-planner.jaquin.fr
  11. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  12. </VirtualHost>
  13. <VirtualHost *:443>
  14. ServerAdmin clovis@jaquin.fr
  15. ServerName bdlg-planner.jaquin.fr
  16. DocumentRoot /home/clovis/bdlg-2023/www
  17. ProxyPreserveHost On
  18. ProxyRequests off
  19. ProxyPass /api/ http://127.0.0.1:8071/
  20. ProxyPassReverse /api/ http://127.0.0.1:8071/
  21. <Location />
  22. RewriteEngine on
  23. RewriteCond %{REQUEST_FILENAME} !-d
  24. RewriteCond %{REQUEST_FILENAME} !-f
  25. RewriteCond %{REQUEST_URI} !^/api
  26. RewriteRule . /index.html [L]
  27. </Location>
  28. <Directory /home/clovis/bdlg-2023/www>
  29. Require all granted
  30. Order allow,deny
  31. Allow from all
  32. </Directory>
  33. SSLCertificateFile /etc/letsencrypt/live/bdlg-planner.jaquin.fr/fullchain.pem
  34. SSLCertificateKeyFile /etc/letsencrypt/live/bdlg-planner.jaquin.fr/privkey.pem
  35. Include /etc/letsencrypt/options-ssl-apache.conf
  36. ErrorLog ${APACHE_LOG_DIR}/bdlg2023_error.log
  37. LogLevel debug
  38. CustomLog ${APACHE_LOG_DIR}/bdlg2023_access.log combined
  39. </VirtualHost>