Angular Deployment
My Deployment
I have used apache for deployment which means this page and other conf need to be excluded. I used the following config
<VirtualHost *:443>
ServerName www.test.com
DocumentRoot /mnt/RAIDARRAY/WEB/apps/www.test.com/bibbleWeb/
<Directory /mnt/RAIDARRAY/WEB/apps/www.test.com/bibbleWeb/>
Require all granted
</Directory>
# Rewrite rules
RewriteEngine On
# Do not redirect existing files and directories
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d [OR]
# Do not redirect confs
RewriteCond %{REQUEST_URI} ^/roundcube [OR]
RewriteCond %{REQUEST_URI} ^/mediawiki [OR]
RewriteCond %{REQUEST_URI} ^/phpldapadmin
# If the requested resource doesn't exist, use index.html
RewriteRule ^ - [L]
RewriteRule ^ /index.html
#
# SSL
#
SSLCertificateFile /etc/letsencrypt/live/www.test.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.test.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
#
# Rewrite debugging turn off
#
LogLevel alert rewrite:trace6
#
# Log definitions
#
ErrorLog ${APACHE_LOG_DIR}/www.test.com-error.log
CustomLog ${APACHE_LOG_DIR}/www.test.com-access.log combined
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"
</VirtualHost>