Skip to content

Commit a482f73

Browse files
Create the nginx config default file.
1 parent 50b961f commit a482f73

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

default

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
server {
2+
listen 80;
3+
listen [::]:80;
4+
server_name _;
5+
return 301 https://$host$request_uri;
6+
}
7+
8+
server {
9+
listen 443 ssl http2 default_server;
10+
listen [::]:443 ssl http2 default_server;
11+
12+
root /var/www/html/example;
13+
index index.html index.htm index.php;
14+
15+
server_name _;
16+
17+
include /config/nginx/proxy-confs/*.subfolder.conf;
18+
19+
include /config/nginx/ssl.conf;
20+
21+
client_max_body_size 0;
22+
23+
location / {
24+
try_files $uri $uri/ /index.php?$args @app;
25+
}
26+
27+
location @app {
28+
proxy_pass http://wordpress;
29+
proxy_set_header Host $host;
30+
proxy_redirect off;
31+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
32+
proxy_set_header X-Forwarded-Proto https;
33+
proxy_set_header X-Real-IP $remote_addr;
34+
}
35+
36+
}

0 commit comments

Comments
 (0)