タグ

ファイルとnginxに関するiwwのブックマーク (5)

  • nginx の設定一覧の出力 - Qiita

    nginx の設定ファイル(config)では、includeで複数ファイルを 読み込むことができます。 共通ファイルや特定ドメイン向けの設定をファイルに切り出して……みたいな 使い方をするのですが、 複数ファイルに分けていると最終的にどんな設定になったのかがわかりにくのです。 そんな時には、どんな設定になったかを確認する方法が提供されています。 nginx: [warn] duplicate MIME type "text/html" in /etc/nginx/sites-enabled/elasticbeanstalk-nginx-docker-proxy.conf:11 nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx

    nginx の設定一覧の出力 - Qiita
    iww
    iww 2020/01/10
    nginx -T で nginxがなんの設定ファイルを読んでるのかの一覧を出す。超すごい
  • nginx fastcgi_params を include する箇所、割と皆間違ってるよね? - Qiita

    Syntax: fastcgi_param parameter value [if_not_empty]; Default: — Context: http, server, location Sets a parameter that should be passed to the FastCGI server. The value can contain text, variables, and their combination. These directives are inherited from the previous level if and only if there are no fastcgi_param directives defined on the current level. FastCGI サーバに渡されるべきパラメータを設定します。 値にはテキスト、 変

    nginx fastcgi_params を include する箇所、割と皆間違ってるよね? - Qiita
  • [対処法] 413 Request Entity Too Large

    413 Request Entity Too Large 原因 リクエストエンティティ(=通常はメッセージボディ。ファイルアップロード時におけるファイルサイズ等)がサーバの許容量を超えている。 まずはサイズが大きすぎるファイルをサーバに送信しようとしていないか確認する。通常はアプリケーション側でサイズチェックを行い、「アップロード可能なファイルサイズは最大◯◯MBです」等と表示されるが、エラーチェックがされていない場合、そのままサーバにファイルが送信され、サーバ側は許容範囲外のファイルを受信できずに413エラーをレスポンスする。 あなたがユーザーの場合 ファイルアップロード時に発生するエラーの場合は、ファイルサイズを小さくして再アップロードしてみる。または、使用しているアプリケーションや環境特有の問題である可能性もあるため、アプリケーション名とあわせて検索して対処法を調査する。例えば、Su

    iww
    iww 2017/06/22
    『デフォルトは1M』
  • htaccessファイルはnginxのに変換

    About the htaccess to nginx converter The service is to convert an Apache's .htaccess to nginx configuration instructions. First of all, the service was thought as a mod_rewrite to nginx converter. However, it allows you to convert some other instructions that have reason to be ported from Apache to nginx. Not server instructions (e.g. php_value, etc.) are ignored. The converter does not check syn

    iww
    iww 2016/07/01
    .htaccessファイルをapache用からnginx用に変換するWEBツール。 大変素晴らしい。
  • nginx連載3回目: nginxの設定、その1

    ディレクティブはこのモジュールのカテゴリ毎に記述します。ただし、coreモジュールに関してはmainコンテキスト、すなわち、設定ファイル内の最上位の階層に記述します。設定ファイルの構成は次のようになります。 coreモジュールの設定 events { eventモジュールの設定 } http { httpモジュールの設定 } mail { mailモジュールの設定 } httpコンテキストはさらに、バーチャルサーバ(バーチャルドメイン)毎の設定を行うserverディレクティブ、さらにURI毎の設定を行うlocaltionディレクティブにより階層化されます。次のような構成になります。 http { httpモジュールの設定 server { サーバ毎の設定 location PATH { URI毎の設定 } location PATH { URI毎の設定 } ... } server { .

    nginx連載3回目: nginxの設定、その1
  • 1