Skip to content

Instantly share code, notes, and snippets.

@masiur
Created July 11, 2018 08:19
Show Gist options
  • Select an option

  • Save masiur/04f7568c45149ddfdaed40244c14b2dd to your computer and use it in GitHub Desktop.

Select an option

Save masiur/04f7568c45149ddfdaed40244c14b2dd to your computer and use it in GitHub Desktop.
Vue.js Nginx Configuration ( history mode )
server {
root /var/www/html/example.com/example-project-directory/dist;
index index.html index.htm index.nginx-debian.html;
server_name example.com www.example.com;
location / {
try_files $uri $uri/ /index.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment