Make a copy of the layouts folder
Configure the virtual directories (_layouts) in IIS
Change the local path to the copy of layouts
This actions must be done on all SharePoint servers.
This describes one way. An other way is the usage of http modules to redirect to a application.master copy.