タグ

tipsと設定に関するryu_blackndのブックマーク (1)

  • Converting rewrite rules

    People who during their shared hosting life used to configure everything using only Apache’s .htaccess files, usually translate the following rules: RewriteCond %{HTTP_HOST} example.org RewriteRule (.*) http://www.example.org$1 to something like this: server { listen 80; server_name www.example.org example.org; if ($http_host = example.org) { rewrite (.*) http://www.example.org$1; } ... } This is

    ryu_blacknd
    ryu_blacknd 2011/12/30
    ApacheからNginxへの移行で最も困るのは、おそらく.htaccessファイルでしょう。Nginxの記述はスマートでモアベターな感じなのですが、既存サイトからのコンバート作業は大変です(;・∀・)
  • 1