Skip to content

Instantly share code, notes, and snippets.

@lddsb
Last active March 5, 2019 15:12
Show Gist options
  • Select an option

  • Save lddsb/d789ae403c4cc5d1b05f74fdb8473289 to your computer and use it in GitHub Desktop.

Select an option

Save lddsb/d789ae403c4cc5d1b05f74fdb8473289 to your computer and use it in GitHub Desktop.
Apache2 uses the Alias setting to open the Vista mode Vue project 404 solution
<VirtualHost _default_:443>
ServerName example.com
...
Alias /example "/path/to/vue/dist"
<Directory /path/to/vue/dist>
AllowOverride all
Require all granted
FallbackResource /index.html
</Directory>
...
</VirtualHost>
<VirtualHost _default_:443>
ServerName example.com
...
Alias /example "/path/to/vue/dist"
<Directory /path/to/vue/dist>
AllowOverride all
Require all granted
FallbackResource /example/index.html
</Directory>
...
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment