Nginx

Tag: Nginx/設定

目次

関連ページ

参考情報

設定の基本

location

PHP-FPMとの連携

Unix Socketで連携

タイムアウトする場合の調節

fastcgi_params を include する場所について。

WordPress用の設定(ルート)

設定ファイル

php-fpmの設定

トラブルシューティング

WordPress用の設定(サブディレクトリ)

設定ファイル

server {
    listen       80;
    server_name  localhost;

    index index.php;
    root /home/sora/public_html;

    location /wordpress {
        try_files $uri $uri/ /wordpress/index.php?$query_string;
    }

    location ~* /wp-config.php {
        deny all;
    }

    location ~ \.php$ {
        fastcgi_pass   unix:/var/run/php5-fpm.sock;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }

トラブルシューティング

ダッシュボードが表示されない


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-04-11 (月) 15:28:00