Option 1 is correct. The motherboard blue to CDROM middle to HDD end.
But CDROMs usually use regular 40-pin cables, and ATA66 and up HDD use 80-pin cables (with the blue connector on the motherboard end). Also, it is usually recommended that you keep your HDDs on a separate IDE channel from CDROMs.