mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 15:22:38 -04:00
49 lines
1.5 KiB
Nginx Configuration File
49 lines
1.5 KiB
Nginx Configuration File
root /PATH/TO/YOUR/WEB/APPLICATION;
|
|
|
|
proxy_pass http://localhost:8080;
|
|
|
|
location ~ \.do$ {
|
|
proxy_pass http://localhost:8080;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
}
|
|
location ~ \.jsp$ {
|
|
proxy_pass http://localhost:8080;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
}
|
|
location ^~/servlets/* {
|
|
proxy_pass http://localhost:8080;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name YOUR_DOMAIN;
|
|
root /PATH/TO/YOUR/WEB/APPLICATION;
|
|
location / {
|
|
index index.jsp;
|
|
}
|
|
location ~ \.do$ {
|
|
proxy_pass http://localhost:8080;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
}
|
|
location ~ \.jsp$ {
|
|
proxy_pass http://localhost:8080;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
}
|
|
location ^~/servlets/* {
|
|
proxy_pass http://localhost:8080;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
}
|
|
}
|