阿帕奇的.so和.c文件 [英] Apache .so and .c files

查看:97
本文介绍了阿帕奇的.so和.c文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到有检查在不同的.htaccess文件mod_rewrite.c文件,但我只有mod_rewrite.so,它们之间有什么区别?

 < IfModule mod_rewrite.c>

#确保目录列表被禁用
选择了FollowSymLinks + +索引
RewriteEngine叙述上

< / IfModule>
 

解决方案

这听起来有点倒退,但是这只是它的工作方式。该 < IfModule> 容器想任何一个模块名称或模块文件。在模块文件的情况下,它要在源文件(的.c)。这是因为一些模块的编译到apache的的,所以没有共享库文件(的.so)。

的LoadModule ,它加载一个模块,外部的主要的Apache核心,使用.so文件。

I see what there is checks for mod_rewrite.c file in different .htaccess files, but i have only mod_rewrite.so, what is the difference between them?

<IfModule mod_rewrite.c>

# Make sure directory listing is disabled
Options +FollowSymLinks +Indexes
RewriteEngine on

</IfModule>

解决方案

It sounds kind of backwards but that's just the way it works. The <IfModule> container wants either a module name or a module file. In the case of the module file, it wants the source file (.c). This is because some modules are compiled into apache so there is no shared library file (.so).

In the case of LoadModule, which loads a module that is external to the main apache core, you use the .so file.

这篇关于阿帕奇的.so和.c文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆