aboutsummaryrefslogtreecommitdiff
path: root/srcs/nginx/src/ft_services.conf
blob: 642dc8ccc6dabbd26194bf608b4bd467a58c146f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
server {
	listen 443 ssl;
	listen [::]:443 ssl;

	ssl_certificate     /root/ft_services.pem;
	ssl_certificate_key /root/ft_services_key.pem;

	server_name localhost;
	index index.html index.htm;
	root /www;

	location / {
		try_files $uri $uri/ =404;  # if uri or uri/ not valid, 404 error
	}

    location /wordpress {
        return 307 https://$host:5050;
    }

    location /phpmyadmin {
        proxy_pass https://$host:5000;
    }
}

server {
	listen 80;
	listen [::]:80;

	server_name localhost;
	index index.html index.htm;
	root /www;

	location / {
		try_files $uri $uri/ =404;  # if uri or uri/ not valid, 404 error
	}
	return 301 https://$host$request_uri;
}

# vim:ft=conf