3

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?

2 Answers2

8

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.

Joey
  • 1,823
  • 11
  • 13
  • 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: http://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. – Maximus Minimus Feb 10 '10 at 11:24
2

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.

John Gardeniers
  • 27,262
  • 12
  • 53
  • 108
  • In Windows there is a technical requirement for a particular file extension in several situations. This is not one of them, but the statement is a bit unclear. – wizzwizz4 Mar 01 '17 at 07:16