有没有办法知道编译从源代码的Apache时,最后的./configure选项?

如果是PHP,可以通过phpinfo();来检查phpinfo();

有没有办法知道./configure ...如何build立apache的细节?

如果你仍然有编译目录,你可以看看config.log虽然我不确定如果Apache使用“标准”,可能有另一个日志文件,sorting,你可以尝试find它通过使用grep './configure ' *

我不知道它是否会为您提供所有您想知道的内容,但它为您提供了关于如何configuration服务器的/吨/的信息:

 <IfModule mod_info.c> # Allow remote server configuration reports, with the URL of # http://servername/server-info (requires that mod_info.c be loaded). # Change the ".example.com" to match your domain to enable. # <Location /server-info> SetHandler server-info Order deny,allow Deny from all Allow from 127.0.0.1 </Location> </IfModule> 

您将需要将127.0.0.1更改为您的IP地址,除非您正在从本地主机执行此操作。

在你的apache httpd的configuration文件中,然后添加mod_info到你已经加载的模块将允许你在浏览器中浏览http://example.com/server-info ,看到各种各样的configuration细节。

许多configuration脚本(包括apache附带的脚本)都有帮助的选项,请尝试

 ./configure --help 

要么

 ./configure -h 

查看构build选项的列表。