Hi @martin.schwarz.
It was a syntax error, but I can do it now with the reference that @andreas-doehler mentions, this is how I can do this:
I created the check_mk_proxy.conf file in /etc/httpd/conf.d
Path:
/etc/httpd/conf.d/check_mk_proxy.conf
<Location /remotesite1>
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^/.+/remotesite1/(.*) http://remoteip/remotesite1/$1 [P]
RewriteRule ^/.+/remotesite1 http://remoteip/remotesite1 [P]
<Location /remotesite2>
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^/.+/remotesite2/(.*) http://remoteip/remotesite2/$1 [P]
RewriteRule ^/.+/remotesite2 http://remoteip/remotesite2 [P]
And I restarted the httpd service:
systemctl stop httpd.service
systemctl restart httpd.service
I complement this with the modifications in the slaves in the URL prefix:
And now I can see the information of the graphs of all my slaves in the master.
Thank you very much for your help @andreas-doehler and @martin.schwarz !!