http_mail-mydomen 434 B

1234567891011121314151617
  1. server {
  2. listen 192.4.1.6:80;
  3. server_name mail.mydomen.ru;
  4. if ($http_host !~ "^mail.mydomen.ru$"){
  5. rewrite ^(.*)$ http://mail.mydomen.ru$1 redirect;
  6. }
  7. root /home/wwwmails/mail-mydomen;
  8. error_log /var/log/nginx/err-mail_mydomen_ru.log;
  9. access_log /var/log/nginx/access-mail_mydomen_ru.log;
  10. include /etc/nginx/templates/content.conf;
  11. include /etc/nginx/templates/letsencrypt.conf;
  12. }