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.
hestiacp/install/rpm/nginx/unassigned.inc

52 lines
966 B

1 year ago
server {
listen directIP:80 default_server;
server_name _;
access_log off;
error_log /dev/null;
location / {
root /var/www/html;
location /phpmyadmin/ {
alias /var/www/document_errors/;
return 404;
}
location /phppgadmin/ {
alias /var/www/document_errors/;
return 404;
}
location /webmail {
alias /var/www/document_errors/;
return 404;
}
location /webmail/ {
alias /var/www/document_errors/;
return 404;
}
location /error/ {
alias /var/www/document_errors/;
}
}
}
server {
listen directIP:443 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/;
}
}