1

Topic: X-Robots-Tag : none

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
======== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====Iredadmin Version 0.9.8 not cloud.
(Fresh Install of june)
MYSQL
NGINX


Hello, i contact you cause i upload my website on the server, and i have a problem, the header block my page for bots of google and others.
With a developper tool i check my header and i found it X-Robots-Tag : none , so that's my problem and it does not come from me xD.

In my html files i have put :

<meta name="robots" content="index, follow"> 

And the result is the same, without it , it's the same too.

And i'm sure there is somewhere in config file a directive who lock it, but you know your code and i'm sure you will be able to say me where i can found this line smile

http://prntscr.com/kkifcu

Thanks smile

----

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

2

Re: X-Robots-Tag : none

Check file /etc/nginx/conf-enabled/headers.conf, does it contain X-Robots-Tag?

Note: this header was not present in the latest stable release (and all earlier versions), i'm confused why you have it.

3

Re: X-Robots-Tag : none

Hello, I don't have the headers.conf on my installation.
Really strange..

4

Re: X-Robots-Tag : none

This header was not present in the latest stable release (and all earlier versions), i'm confused why you have it.

5

Re: X-Robots-Tag : none

I love when developers don't know what they wright wink

Go to your file  nano /etc/nginx/params.conf 

add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
    add_header X-Content-Type-Options nosniff;
    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Robots-Tag none;

6

Re: X-Robots-Tag : none

Which linux distribution are you running? i never had this issue.

7

Re: X-Robots-Tag : none

I'm just running debian 9.4 on a VPS of OVH.

8

Re: X-Robots-Tag : none

Please show me file /etc/nginx/nginx.conf.

We don't read /etc/nginx/params.conf at all, i wonder why your Nginx config file loads it.

9

Re: X-Robots-Tag : none

Ahaha , sure you read this file ! smile

user www-data;
worker_processes 1;
pid /var/run/nginx.pid;

events {
    worker_connections 1024;
}

http {
    include /etc/nginx/conf-enabled/*.conf;
    include /etc/nginx/sites-enabled/*.conf;
    include /etc/nginx/ssl/params.conf;


}