I have Apache server which is running Angular 6 application under /var/www/html/<angular_root>. I tried to add one folder /var/www/html/admin/<angular_root> but I get errors Failed to load resource: the server responded with a status of 404 (Not Found). Do you know what configuration I need to implement?
My current apache configuration is:
<Directory /var/www/html/admin>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
DocumentRootis set to/var/www/html, and since you are usingadmindirectory, you should have used base ref as '/admin' instead of default '/' at the time of compilation. You can later change it within generatedindex.htmlif you wish. @DmitryK has usedDocumentRootsame as path of directory to host Angular code, so default base ref is working fine.