Created
April 13, 2018 01:24
-
-
Save erajuan/03ba7ebac9f40d6c71e44a09f15a18f1 to your computer and use it in GitHub Desktop.
apache2 config: deploy angular 5 in a sub directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Alias /app /path/to/angular/build/dir | |
<Directory /path/to/angular/build/dir > | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /a/index.html [L] | |
AllowOverride All | |
# Order allow,deny | |
# allow from all | |
Require all granted | |
</Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment