Skip to content

Instantly share code, notes, and snippets.

@erajuan
Created April 13, 2018 01:24
Show Gist options
  • Save erajuan/03ba7ebac9f40d6c71e44a09f15a18f1 to your computer and use it in GitHub Desktop.
Save erajuan/03ba7ebac9f40d6c71e44a09f15a18f1 to your computer and use it in GitHub Desktop.
apache2 config: deploy angular 5 in a sub directory
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