Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old June 26th, 2001, 08:49 AM
Shmengy Shmengy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 7 Shmengy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Module Compilation Order

Could someone please let me know how to alter the order in which modules are compiled into Apache?

Thanks

Reply With Quote
  #2  
Old June 26th, 2001, 04:45 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Either way, static or share, you can't. Why you needed to do that in the first place?

Reply With Quote
  #3  
Old June 26th, 2001, 04:47 PM
Shmengy Shmengy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 7 Shmengy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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!

Reply With Quote
  #4  
Old June 26th, 2001, 04:53 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #5  
Old June 30th, 2001, 09:16 AM
wolph wolph is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Sharon, Connecticut, USA
Posts: 6 wolph User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.)

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Module Compilation Order


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway