0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

laravel Docker 環境構築 「File Not Found」 エラー解決メモ

Posted at

この記事の中盤辺りの「Laravel ウェルカム画面の表示」のところで
File Not Found
とエラーが出てしまいページが表示されなかったのですが、いろいろ調べてとりあえず動くようにはなったのでその解決メモを残しておきます。


結論としては、default.confのroot設定をroot /work/public;から
root /work/laravel/public; に書き換えました。

default.conf
server {
    listen 80;
    server_name example.com;
    root /work/public;     <---この行を書き換える

    ...

これで僕はとりあえず動くようにはなりましたが、これが正しい治し方かどうかはわかりませんのであくまでも応急処置という認識でよろしくお願いします。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?