Vue router server configuration for history mode on nginx does not work Vue router server configuration for history mode on nginx does not work laravel laravel

Vue router server configuration for history mode on nginx does not work


I just read mattstauffer blog post and finally found way to do in Laravel route. Like the following

Route::get('user/{vue_capture?}', function() {    return View::make('user.index');})->where('vue_capture', '[\/\w\.-]*');

It does not return 404 when user directly visiting a deep link to site.