logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: migrating httpd.conf from windows to linux
Author
GadiK



Joined: 14 Jul 2010
Posts: 14

PostPosted: Thu 29 Jul '10 18:18    Post subject: migrating httpd.conf from windows to linux Reply with quote

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: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 29 Jul '10 22:59    Post subject: Reply with quote

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


Reply to topic   Topic: migrating httpd.conf from windows to linux View previous topic :: View next topic
Post new topic   Forum Index -> Apache