Without SSL, Apache can be configured as such:
./configure\ --enable-module=rewrite \ --prefix=/usr/local/apache \ --enable-module=so \ | tee configure_output.txt
Where prefix indicates to configure where Apache should be installed to. This is usually /usr/local/apache, but can be /opt/apache.