Help in configuring apache in Linux

How can I compile apache to use previous configuration in Linux? I need upgraded to apache 2.4 from apache 2.2 and I want to keep my previous configurations such as layout, configuration option. How do I accomplish this task? Is my previous configuration is not saved, can the previous configuration be used?
