Topic: I can't create another website on the server on iRedmail
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version :1.6.3
- Deployed with iRedMail Easy or the downloadable installer?: downloadable
- Linux/BSD distribution name and version: Ubuntu22.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? :No
====
Excuse me.
I want to host roundcube on mail.example.com and another site on example.com, but I can't.
Configure Nginx as shown below, restart, and even if you access example.com, it will be redirected to RoundCube.
How can I host another site without redirects?
```
server {
listen 80;
listen [::]:80;
server_name example.com;
root /var/www/example.com;
index index.html index.php;
location / {
try_files $uri $uri/ =404;
}
}
server {
listen 443;
listen [::]:443;
root /var/www/example.com;
index index.html index.html index.php;
server_name example.com;
location / {
try_files $uri $uri/ =404;
}
}
```
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.