0
웹 서버로 ui-routes 및 nginx를 사용하여 각도 고정 응용 프로그램을 구현 중입니다. 내 각도 경로 코드 :nginx 404 redirection from second time
$urlRouterProvider.otherwise('/home');
$locationProvider.html5Mode({
enabled: false,
requireBase: false
});
$stateProvider
.state('home', {
url: '/home',
templateUrl: '/views/homePage.html'
});
그리고 내가 그것을 내 사이트의 홈 페이지로 리디렉션 및 URL이 때 새로 고침 후 http://locahost/home로 변경됩니다 브라우저의 주소 표시 줄에 localhost를 입력
location/{
root html/MySite;
index index.html index.htm;
}
nginx.conf 페이지 페이지는 nginx 404 페이지로 리디렉션됩니다. 주소 입력란에 http://locahost/home을 입력하면 nginx 404 페이지가 리디렉션됩니다.
HTTP를 index.html을하는 것이 리디렉션 : // locahost/가정 문제의 오타 또는 소스입니까? –