Last active
March 17, 2018 00:53
-
-
Save f-akazawa/66d87cb7c1bbed7b57cc to your computer and use it in GitHub Desktop.
Nginxで複数サイト運用 ref: https://qiita.com/f-akazawa/items/725f3729a047a38052c5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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