/etc/nginx/sites-available/xwiki
server {
listen 443 ssl;
server_name wiki.mysite.ru;
ssl_certificate /home/administrator/flask/loaders_webserv/server.crt;
ssl_certificate_key /home/administrator/flask/loaders_webserv/server.key;
client_body_timeout 5s;
client_header_timeout 5s;
location / {
include proxy_params;
proxy_pass http://192.168.0.11:8080/;
}
# rewrite /(.*) /xwiki/bin/view/$1 permanent;
error_log /var/log/nginx/app_error_wiki.log;
access_log /var/log/nginx/app_access_wiki.log;
}
server {
listen 80;
server_name wiki.mysite.ru;
return 301 https://wiki.mysite.ru$request_uri;
}