-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
66 lines (51 loc) · 1.48 KB
/
nginx.conf
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
# location /blog {
# rewrite ^/blog$ /blog break;
# }
# location /contacus {
# rewrite ^/contacus$ /contacus.html break;
# }
# location /aluguel {
# rewrite ^/aluguel$ /aluguel.html break;
# }
# location /cpap-bipap.html {
# rewrite ^/cpap-bipap.html$ /cpap-bipap.html.html break;
# }
# location /mascaras {
# rewrite ^/mascaras$ /mascaras.html break;
# }
# location /oxigenoterapia {
# rewrite ^/oxigenoterapia$ /oxigenoterapia.html break;
# }
# location /quem-somos.html {
# rewrite ^/quem-somos.html$ /quem-somos.html.html break;
# }
# location /acessorios {
# rewrite ^/acessorios$ /acessorios.html break;
# }
# location /terapia-respiratoria {
# rewrite ^/terapia-respiratoria$ /terapia-respiratoria.html break;
# }
# # Exceções para regras específicas
# location /admin {
# rewrite ^/admin$ /admin_panel.html break;
# }
# location /login {
# rewrite ^/login$ /login_page.html break;
# }
# Arquivos estáticos
location /static/ {
alias /usr/share/nginx/html/static/;
expires max;
access_log off;
}
gzip on;
gzip_types text/plain text/css application/javascript application/json application/xml;
}