1

Topic: Redirect ==> http to https

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.1
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: CentOs 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello,
I must install glpi (in http) and I want to disable redirections of nginx from http to https.
I saw in the file /etc/nginx/sites-available/00-default.conf the last line:
# Redirect all insecure http:// requests to https://
    return 301 https://$host$request_uri;
But when I comment the last one, then reload and restart nginx, the redirection from http ==> https is again active.
Any idea?
thank you.

----

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

2

Re: Redirect ==> http to https

Why not use https?

3

Re: Redirect ==> http to https

Yes I'll try but I always with apache.
Can you please tell me where are stored web pages in iRedMail (DocumentRoot)?
Thank you.

4

Re: Redirect ==> http to https

Hello,

Can you please help me?
I put glpi folder in /usr/share/nginx/html/ and in /opt/www but I have 404 error.
So, I do not know where to put my glpi for being it work.

And I don't know where in nginx is made the redirection from https://server.com/roundcubemail/ to https://server.com/mail/

5

Re: Redirect ==> http to https

Hello,

Any idea where I can find web pages on my server for putting there my glpi folder?
Thank you.

6

Re: Redirect ==> http to https

Check file /etc/nginx/sites-enabled/00-default*.conf and /etc/nginx/templates/*.tmpl.