1

Topic: New install

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.1
- Deployed with iRedMail Easy or the downloadable installer?installer
- Linux/BSD distribution name and version: Ubuntu 22.04
- 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 have just installed iRedMail-1.7.1 on Ubuntu 22.04 and got email up and running O.K. but when I attempted to add website, url changed from MySite.com to MySite.com/mail which produced 404 error page, I refreshed tab with working email and that produced the same 404 error, removing the website .conf file resulted in the return of RoundCube email, I did try once removing the two default .conf files and was able to get website with no problems but cannot get website and webmail at the same time, can anyone help with this?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: New install

I tried adding website again and this time the page appeared but again when I refreshed tab of email it resulted in 404 error, anyone else had this problem?

3

Re: New install

Some more experimenting - if I enter in the browser address bar MySite.com/index.html, the webpage will appear, also if I enter w w w.MySite.com the webpage will appear but if I enter MySite.com it results in a 404 error but all three entries will remove webmail giving 404 error, in fact simply creating symlink to the website will affect webmail causing 404 error all the while nginx -t shows no errors.

4

Re: New install

How did you add your site in Nginx? Did you specify the "server_name"?

5

Re: New install

ZhangHuangbin wrote:

How did you add your site in Nginx? Did you specify the "server_name"?

Thanks for the reply, I created a MySite.conf file and placed it in /etc/nginx/sites available, then in terminal - sudo ln -s /etc/nginx/sites-available/MySite.conf /etc/nginx/sites-enabled/MySite.conf, cannot include contents of .conf file as editor complains about links but server name to website was included.

6

Re: New install

All solved  by including config snippets in MySite.conf file.