Does a server put in a 19-inch rack require CE marking?
If the rack in question is just a &quot;dumb metal component&quot; containing no electronics, no shielding for the purpose of EMC, is not purposely used as antenna ground and does not contribute negatively to radio or EMC when used in the intended environment, then you are excluded from most of the EU directives regarding electronics.
The EMC Directive 2014/30/EU has the following exception in its scope (Article 2):

This Directive shall not apply to:
/--/
(d) equipment the inherent nature of the physical characteristics of which is such that:
(i) it is incapable of generating or contributing to electromagnetic emissions which exceed a level allowing radio and telecommunication equipment and other equipment to operate as intended; and
(ii) it operates without unacceptable degradation in the presence of the electromagnetic disturbance normally consequent upon its intended use;

RED and LVD directives will have similar wordings. RoHS does indeed only apply to electronics. You may however still have to take the WEEE and REACH environmental directives in account, regarding recycling and banned chemicals. Depending on what your product contains - be wary of cadmium and various flame retardants in particular.