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でのnginxのdefault.conf

Posted at

default.confの内容

公式ページからコピーするだけ.
laravel公式ページ

default.conf
server{
    listen 80;
    server_name example.com;
    root /srv/example.com/public;

    fastcgi_pass unix:/var/run/php/php-fpm.sock;
}

コピーしたら上の場所を適当に変えるだけで基本動く。

ちなみに

dockerにおいて、nginxコンテナにapt, apt-getは実行できない。
そのためapk updateなどを使う。

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?