In a 1.94 hestia instalation i have various mail accounts that work fine.
One mail account has a problem. I have a wordpres web. When accesisg roundcube, it opens the wordpress site not the webmail.fland.es, it opens fland.es
¿How can I solve it , or is it incompatible to use web and mail at the same hestia?
Show the output of these commands:
cat /etc/nginx/conf.d/domains/fland.es.ssl.conf
cat /etc/nginx/conf.d/domains/webmail.fland.es.ssl.conf
server {
listen 173.212.247.202:443 ssl;
server_name fland.es www.fland.es webmail.fland.es mail.fland.es;
error_log /var/log/apache2/domains/fland.es.error.log error;
ssl_certificate /home/webmaster/conf/web/fland.es/ssl/fland.es.pem;
ssl_certificate_key /home/webmaster/conf/web/fland.es/ssl/fland.es.key;
ssl_stapling on;
ssl_stapling_verify on;
# TLS 1.3 0-RTT anti-replay
if ($anti_replay = 307) { return 307 https://$host$request_uri; }
if ($anti_replay = 425) { return 425; }
include /home/webmaster/conf/web/fland.es/nginx.hsts.conf*;
location ~ /\.(?!well-known\/|file) {
deny all;
return 404;
}
location / {
proxy_ssl_server_name on;
proxy_ssl_name $host;
proxy_pass https://173.212.247.202:8443;
location ~* ^.+\.(css|htm|html|js|mjs|json|xml|apng|avif|bmp|cur|gif|ico|jfif|jpg|jpeg|pjp|pjpeg|png|svg|tif|tiff|webp|aac|caf|flac|m4a|midi|mp3|ogg|opus|wav|3gp|av1|avi|m4v|mkv|mov|mpg|mpeg|mp4|mp4v|webm|otf|ttf|woff|woff2|doc|docx|odf|odp|ods|odt|pdf|ppt|pptx|rtf|txt|xls|xlsx|7z|bz2|gz|rar|tar|tgz|zip|apk|appx|bin|dmg|exe|img|iso|jar|msi|webmanifest)$ {
try_files $uri @fallback;
root /home/webmaster/web/fland.es/public_html;
access_log /var/log/apache2/domains/fland.es.log combined;
access_log /var/log/apache2/domains/fland.es.bytes bytes;
expires max;
}
}
location @fallback {
proxy_ssl_server_name on;
proxy_ssl_name $host;
proxy_pass https://173.212.247.202:8443;
}
location /error/ {
alias /home/webmaster/web/fland.es/document_errors/;
}
proxy_hide_header Upgrade;
include /home/webmaster/conf/web/fland.es/nginx.ssl.conf_*;
}
root@hestiacp-02:\~#
root@hestiacp-02:~# cat /etc/nginx/conf.d/domains/webmail.fland.es.ssl.conf
cat: /etc/nginx/conf.d/domains/webmail.fland.es.ssl.conf: No such file or directory
root@hestiacp-02:~#
The first thing you must do is to remove the aliases webmail.fland.es mail.fland.es from the web domain fland.es.
Once done, you must add a mail domain for fland.es, it will create the right conf for webmail and mail.
1 Like