2017-07-06 2 views
1

、(私たちは「--prodを構築NG」を使用して構築する場合、それはdistのフォルダ内のファイルを生成します。このチュートリアルに従う)Apache ServerのAngular 2 Hostに問題がありますか?私は、角2プロジェクトとApacheサーバでホストを構築しようとしています

tutorial found from youtubeとチュートリアルプロジェクトの結果PHPサーバでは動作しません。メッセージの読み込みのみが表示され、コンソールではこのエラーが発生します。
Failed to load resource: the server responded with a status of 404 (Not Found) inline.33006aa0c7f9271418c2.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found) main.42e5fd1daf31343420a1.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found) polyfills.017b29d939c6479e18cc.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found) vendor.9e7a0f6b9f9c8c0e49ba.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found) main.42e5fd1daf31343420a1.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found) styles.d41d8cd98f00b204e980.bundle.css Failed to load resource: the server responded with a status of 404 (Not Found)
これを解決するには?

答えて

0

変更後<base href="/"> to <base href="./">問題解決

関連する問題