Skip to content

Commit

Permalink
Merge pull request #2 from fuwalab/feature/add_wplocal_nginx
Browse files Browse the repository at this point in the history
add new conf file of nginx
  • Loading branch information
ryotsun committed Nov 10, 2018
2 parents 1dc7f9e + c4882ba commit 4ddaaa7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions nginx/conf/wordpress-local.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
server {
listen 80;
server_name wplocal.dev-env.fuwalab;

root /var/www/html/php/wplocal;
index index.php;

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

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

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(\.+)$;
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}

location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
}

0 comments on commit 4ddaaa7

Please sign in to comment.