The Goos-Hänchen shift of the system composed by two cavity walls and an intracavity atomic sample is presented. The atomic sample is treated as a four-level double-A system, driven by the two counterpropagating coupling fields. The probe field experiences the discontinuous refractive index variation and is reflected. Moreover, under the phase-matching condition, the four-wave mixing effect based on electromagnetically induced transparency can cause effective reflection. The Goos-Hänchen shifts appear in both situations and are carefully investigated in this article. We refer to the first one with the incident and reflected light having identical wavelength as the linear Goos-Hänchen shift, and the second one with the reflection wavelength determined by the phase-matching condition as the nonlinear Goos-Hänchen shift. The differences between the two kinds of shifts, such as the incident angle range, conditions for the shift peaks, and controllability, are discussed. [ABSTRACT FROM AUTHOR]