Keep Server Online
The Apachelounge is not funded by anyone other than me (Steffen).
If you find the Apache Lounge, the downloads and overall help usefull, please express your satisfaction with a donation.
A donation makes a contribution towards the costs, the time and effort that's going in to running this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well.
| |
|
| View previous topic :: View next topic |
| Author |
Message |
GadiK
Joined: 14 Jul 2010 Posts: 8
|
Posted: Thu 29 Jul '10 16:18 Post subject: migrating httpd.conf from windows to linux |
|
|
Hi guys.
I am running Apache on windows server 2003.
I am about to add another Apache server to my life, only this one will run on Linux.
I would like to use the same configuration for both machines. Are there any caveats for migrating httpd.conf from windows to Linux?
I am worried about the module mpm_winnt. I am using it for the Win32DisableAcceptEx directive.
Will there be trouble if I load the module and use the directive in linux? should I wrap them up in a <IfDefine WIN32> statement?
Thank you. |
|
| Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 2813 Location: Germany, Next to Hamburg
|
Posted: Thu 29 Jul '10 20:59 Post subject: |
|
|
Yepp you can using
| Code: |
<IfModule mpm_winnt.c>
Win32DisableAcceptEx
# and other stuff
</IfModule>
#and on linux what ever you use :-)
<IfModule prefork.c>
</IfModule>
<IfModule worker.c>
</IfModule>
|
Also you can use the linux path style on windows as well.
e.g.
| Code: |
DocumentRoot "C:\Apache23\htdocs"
#becomes
DocumentRoot "/Apache23/htdocs"
|
|
|
| Back to top |
|
|
|
|
|
|