You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
934 B
37 lines
934 B
#=========================================================================#
|
|
# Default Web Domain Template #
|
|
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
|
|
# https://hestiacp.com/docs/server-administration/web-templates.html #
|
|
#=========================================================================#
|
|
|
|
server {
|
|
listen %ip%:%proxy_port% default_server;
|
|
server_name _;
|
|
access_log off;
|
|
error_log /dev/null;
|
|
|
|
location / {
|
|
proxy_pass http://%ip%:%web_port%;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen %ip%:%proxy_ssl_port% default_server ssl;
|
|
server_name _;
|
|
access_log off;
|
|
error_log /dev/null;
|
|
|
|
ssl_certificate /usr/local/hestia/ssl/certificate.crt;
|
|
ssl_certificate_key /usr/local/hestia/ssl/certificate.key;
|
|
|
|
return 301 http://$host$request_uri;
|
|
|
|
location / {
|
|
root /var/www/document_errors/;
|
|
}
|
|
|
|
location /error/ {
|
|
alias /var/www/document_errors/;
|
|
}
|
|
}
|