Skip to content

Instantly share code, notes, and snippets.

@f-akazawa
Last active March 17, 2018 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save f-akazawa/66d87cb7c1bbed7b57cc to your computer and use it in GitHub Desktop.
Save f-akazawa/66d87cb7c1bbed7b57cc to your computer and use it in GitHub Desktop.
Nginxで複数サイト運用 ref: https://qiita.com/f-akazawa/items/725f3729a047a38052c5
wordpressの例
server{
listen 8000; <<<ここを変える
root /home/wordpress;<<<ここも変える
access_log /var/log/nginx/wp_access.log;<<ログも変えておく
error_log /var/log/nginx/wp_error.log;
location / {
index index.php;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_split_path_info^/.+\.php(.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment