on  
Apache Lounge
Webmasters & Programmers Home

 


Forum Index Downloads Contact
Search Forum Register Log in
 RSS Feed Apache Lounge



Register.com New Year Banners


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.

migrating httpd.conf from windows to linux

 
Post new topic   Reply to topic    Apache Forum Index -> Apache
View previous topic :: View next topic  
Author Message
GadiK



Joined: 14 Jul 2010
Posts: 8

PostPosted: Thu 29 Jul '10 16: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
View user's profile
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 2813
Location: Germany, Next to Hamburg

PostPosted: Thu 29 Jul '10 20: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
View user's profile Visit poster's website

Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1