Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I found this in httpd.conf:

LoadModule rewrite_module modules/mod_rewrite.so

Isn't the .so files for linux?

Shouldn't it be .dll for windows?

share|improve this question

2 Answers 2

Two things I can think of here:

  1. Apache is smart enough to use the platform-specific extension on other platforms and doesn't care too much about the .so.

  2. DLLs can be named as you like, the extension can be arbitrary. You can name DLLs on Windows .so if you like.

ETA: As mh mentions in a comment, it's actually both: Apache will load .dll files, even though .so is preferred on Windows systems (Source). Of course, even if it's named .so, it's still a normal PE library.

share|improve this answer
    
Can it be proved? –  vps Feb 10 '10 at 10:52
    
+1: Apache, coming from a Unix background, shouldn't place too much emphasis on the filename extension (it's just the last few characters of the name): the contents of the file are more important. –  pavium Feb 10 '10 at 11:07
4  
Here we go: httpd.apache.org/docs/2.0/mod/mod_so.html Makes sense from the Apache perspective as it means that the same config files can be used on any OS. –  Darth Satan Feb 10 '10 at 11:24

In Windows at least there is no technical requirement for any particular file extension. I imagine the same applies to Linux. File extensions simply provide a mechanism for the OS and the human operators to associate certain files with particular operations or applications.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.