Please use the TARGETURI datastore option which is used by the Msf::Exploit::Remote::HttpClient mixin.