We report a novel method to fabricate ordered arrays of gold-polymer composite nanorods with the orientation in the vertical direction using block copolymer (BCP) film. The salt precursor is selectively infiltrated within vertically aligned cylindrical domains of the BCP film by immersing the template in a simple aqueous solution of HAuCl4. Scanning electron microscopy suggests that the salt might be uniformly positioned along the polymeric cylinders. A subsequent vacuum ultraviolet light irradiation simultaneously reduces the HAuCl4 into spherical gold nanoparticles with mean diameter around 2nm and removes the matrix of the BCP template to produce metal-polymer composite nanorods. While the solvent is methanol, the salt might be concentrated at the bottom of the BCP film. As a result, a periodic pattern of gold nanoparticles with average diameter around 11nm is formed where the BCP film is completely etched away. The solvent can effectively tune the spatial distribution of the salt precursor along the polymeric cylinders, which is responsible for the different morphologies of the photochemically fabricated nanostructures.