|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Could someone please let me know how to alter the order in which modules are compiled into Apache?
Thanks |
|
#2
|
|||
|
|||
|
Either way, static or share, you can't. Why you needed to do that in the first place?
|
|
#3
|
|||
|
|||
|
I thought that the order in which modules were compiled in would affect which modules get precedence. For example, I need mod_rewrite to have precedence of mod_proxy. Is this possible? What governs the order in which modules are applied.
Thanks! ![]() |
|
#4
|
|||
|
|||
|
I still don't see a good reason for doing that. Anyhow, if you insist to do that, first compile all the modules that are to be statically linked, also add dso, then compile all the shared modules one by one in whatever order you wish using apxs.
|
|
#5
|
|||
|
|||
|
Apache Module Order
If you build Apache so that the modules are all DSOs (Dynamically Shared Objects), then you can control the order in which they are loaded by the order in which they are listed in httpd.conf. The modules load last-first.
I do not know if this makes any difference in the way URLs are processed, but it can make a very serious difference in whether Apache runs or not. Modules loaded incorrectly can cause Apache to refuse to run, or to dump core when it does run. Generally, you should not change the order in which the modules load unless you have a compelling reason for doing so and you really know what you are doing. However, all of this is relatively easy to experiment with in a non-production environment. When you ./configure Apache (prior to issuing the make command), use --enable-shared=max and --enable-module=all to turn all modules (except core) into DSOs. then you can rem them in/out and play with the load order in httpd.conf. Note that DSOs do not work properly on all platforms. Check the Apache docs to see DSO warnings. (They work fine in FreeBSD.) |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Module Compilation Order |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|