Topic: Rerirect my website to a domain instead roundcube mail login page
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.5.1 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? Donwloaded
- Linux/BSD distribution name and version: CentOS Server 8 Stream
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
I running a vps sever with Centos 8 Stream also, nginx, mariadb services are installed. I hosted already a website: with the domain "mywebsite.com",
webserver location: /var/www/html
I created virutalhostfile in /etc/nginx/conf.d folder, mywebsite.com.conf
with this:
-----------------------------------------------------------------------------------------------------------------------------
server {
listen 80;
listen [::]:80;
root /var/www/html/mywebsite.com/public_html/;
index index.html index.htm index.nginx-debian.html;
server_name mywebsite.com www.mywebsite.com;
location / {
try_files $uri $uri/ =404;
}
access_log /var/log/nginx/mywebsite.com.access.log;
error_log /var/log/nginx/mywebsite.com.error.log;
------------------------------------------------------------------------------------------------------------------------------
My website is running ok far from here,
I created the dns NX mail records for mywebsite.com as mail.mywebsite.com,
iRedMail, erverying installed correctly , reboot server.
services running OK
when enter the url for mywebsite.com , redirects directly to mywebsite.com/mail,
showing up the roundcube mail login page, instead to showing up my actual website as it was before.
i test mail.mywebsite.com it redirect to roundcube.
please let me know any posible solution, Thanks!
====
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.