Skip to content

Commit

Permalink
update nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubakimoto committed Sep 23, 2023
1 parent 222642e commit a5dc258
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions php/cakephp5/default
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
location / {
try_files $uri $uri/ /index.php?$args;
}

server {
listen 80;
listen [::]:80;
# server_name www.example.com;
# return 301 http://example.com$request_uri;
server_name www.example.com;
return 301 http://example.com$request_uri;
}

server {
listen 80;
listen [::]:80;
# server_name example.com;
server_name example.com;

root /home/site/wwwroot/webroot;
index index.php;
Expand Down

0 comments on commit a5dc258

Please sign in to comment.