Nginx

&tag(Nginx/設定);

目次†[edit]

関連ページ†[edit]

参考情報†[edit]

設定の基本†[edit]

location†[edit]

PHP-FPMとの連携†[edit]

Unix Socketで連携†[edit]

タイムアウトする場合の調節†[edit]

fastcgi_params を include する場所について。†[edit]

WordPress用の設定(ルート)†[edit]

設定ファイル†[edit]

php-fpmの設定†[edit]

トラブルシューティング†[edit]

WordPress用の設定(サブディレクトリ)†[edit]

設定ファイル†[edit]

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