Resonance fluorescence of two two-level atoms driven by a coherent laser field propagating parallel to the interatomic axis is examined, taking into account the dipole-dipole interaction. We show that the number of peaks in the fluorescence intensity depends on the direction of observation with respect to the interatomic axis and on whether the system is driven by a standing-wave or a running-wave laser field. When the system is driven by the standing-wave field the fluorescence intensity shows two peaks and a dip for an observation direction perpendicular to the interatomic axis and three peaks in the direction parallel to it. When the system is driven by the running-wave field only two peaks are observed for the perpendicular direction. We explain these features in terms of the collective states of the system and show that the directional effect can be attributed to the fact that the antisymmetric state of the system does not radiate in the direction perpendicular to the interatomic axis. Photon statistics also demonstrate the directional effect for the standing-wave field. Frequency regimes are found where sub-Poissonian photon statistics occur. Depending on the direction of the observation, a state close to a Fock state can occur for one or two frequencies of the driving field, corresponding to zero-photon-number fluctuations or maximum sub-Poissonian behavior. The fluorescence spectrum is found to depend on the direction of observation and the interatomic separation. For small interatomic separations and a standing-wave driving field the spectrum exhibits seven lines for the perpendicular direction and 13 lines in the direction parallel to the interatomic axis. For the running-wave field the spectrum shows 13 lines independent of the direction of observation. Moreover, we show that for particular interatomic separations dark regimes appear in the spectrum. We discuss the effect of the dipole-dipole interaction on the dark states and explain the spectral features in terms of the dressed-atom model. We also consider the absorption spectrum of a weak probe beam illuminating the two-atom system. We show that apart from a weak dispersion structure, the spectrum shows large peaks as one of the atoms is moved to successive nodes of the field.