All,
I’m trying to figure out how to redirect my IP Address to my FQDN.
I have HTTPS enable and working with FQDN .
https://graylog.enseva-labs.net:9000/search
I also have the IP address.
https://10.200.6.70:9000/search
How do I get only the FQDN and not the IP Address?
Basically either I redircet the IP Address or I block it.
My Evironment:
CentOS 7 Latest Version
graylog-server-3.0.0-12.noarch
elasticsearch-6.6.1-1.noarch
mongodb-org-4.0.6-1.el7.x86_64
I have looked here Web-Interface
I have tried to Configure my Apache config file as shown below.
<VirtualHost *:443>
ServerName graylog.enseva-labs.net
ProxyRequests Off
SSLEngine on
SSLOptions +StrictRequire
SSLCertificateFile "/etc/ssl/certs/graylog/graylog-certificate.pem"
SSLCertificateKeyFile "/etc/ssl/certs/graylog/graylog-key.pem"
RewriteEngine on
RewriteCond %{HTTP_HOST} ^10\.200\.6\.70$ [NC,OR]
RewriteRule .* https://graylog.enseva-labs.net:9000 [R,L]
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
RequestHeader set X-Graylog-Server-URL "https://graylog.enseva-labs.net/"
ProxyPass https://graylog.enseva-labs.net:9000/
ProxyPassReverse https://graylog.enseva-labs.net:9000/
</Location>
</VirtualHost>
Apache is running.
The apache config file I have tried the default configuration such as;
ProxyPass https://127.0.0.1:9000/
ProxyPassReverse https://127.0.0.1:9000/
No errors in the log files, I’m still able to log into Graylog GUI, Everything still working normal.
I have done this with Zabbix, and Nextcloud, but I cant get it with Graylog for some reason. Any help would be appreciated, or direct me to documentation that I have missed…
Thanks