You seize the server running the tor software serving as entry-point for your hidden service and grab the private keypair in order to impersonate the hidden service.
The .onion address is iirc a hash of the public key.
The .onion address is iirc a hash of the public key.
Then you set up networking in a way that the only thing aside from absolute required services running on srv0 is your tor gateway, and no traffic from eth1 may pass through to eth0.
On srv1 you set up the usual services, e.g. mysql, lighttpd and whatever you need hosted.
Ideally, you keep srv0 and srv1 in different datacenters, if not even different countries.