Apache 在不同平台和版本上的默认文件布局

https://wiki.apache.org/httpd/DistrosDefaultLayout

This guide lists the default installation layouts for Apache HTTPD on various operating systems and distributions.

While examples in the main Apache HTTP Server documentation assume that you are using the standard file layout distributed from apache.org, many third-party distributors change the layout to conform to local policies. This can make it difficult to follow the examples and to find various important files. Using the information below, you can find where things live on your local install, and compare it to the standard Apache httpd paths.

Debian, Ubuntu (Apache httpd 2.x):

ServerRoot              ::      /etc/apache2
DocumentRoot            ::      /var/www
Apache Config Files     ::      /etc/apache2/apache2.conf
                        ::      /etc/apache2/ports.conf
Default VHost Config    ::      /etc/apache2/sites-available/default, /etc/apache2/sites-enabled/000-default
Module Locations        ::      /etc/apache2/mods-available, /etc/apache2/mods-enabled
ErrorLog                ::      /var/log/apache2/error.log
AccessLog               ::      /var/log/apache2/access.log
cgi-bin                 ::      /usr/lib/cgi-bin
binaries (apachectl)    ::      /usr/sbin
start/stop              ::      /etc/init.d/apache2 (start|stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean)

Notes:

  1. The Debian/Ubuntu layout is fully documented in /usr/share/doc/apache2/README.Debian
  2. Debian/Ubuntu use symlinks to configure vhosts and load modules. Configuration files are created in their respective sites-available and mods-available directories. To activate vhosts and modules, symlinks are created in the respective sites-enabled and mods-enabled directories to the config files in either sites-available and mods-available. Debian provides scripts to handle this process called ‘a2ensite‘ and ‘a2enmod‘ which activates vhosts and modules.
  3. The default vhost is defined in /etc/apache2/sites-available/default, and overrides the DocumentRoot set in the server context.
时间: 2024-08-03 13:41:44

Apache 在不同平台和版本上的默认文件布局的相关文章

解决Windows平台通过cURL上传APP到蒲公英pgyer平台时无法使用中文升级描述的问题

解决Windows平台通过cURL上传APP到蒲公英pgyer平台时无法使用中文升级描述的问题 官方上传命令 curl -F [email protected]"315.apk" -F uKey=XXX -F _api_key=OOO -F updateDescription=中文 http://www.pgyer.com/piv1/app/upload 问题描述 同样的命令: 在Mac平台上传IPA文件时,能够正常显示中文更新描述 但是在Windows平台上传APK文件时,“更新提示

Windows系统环境下一个Apache运行多个PHP版本

我个人机器上环境是基于Apache2.2运行的PHP5.2/4,如你想部署其他版本的PHP或更多的版本之间切换,同理操作步骤是一样的. 依本人环境为例,机器上已经安装了PHP5.2版本, 所以首先重新创建5.2的服务: 如果你机器上已经运行了Web Server服务,可先暂停并设置为手动执行(因后续我们几乎不再默认运行此服务了). 编辑httpd.conf配置文件,加入以下形式的内容 <ifdefine php5.2># 提供apache调用的php5.2版本dll路径LoadModule p

Apache多虚拟主机多版本PHP(5.3+5.6+N)共存运行配置全过程

摘要: 为需要实现在同一台Linux服务器上面,同时运行多个不同版本的PHP程序,本文我们将使用FastCGI方式加载,并把过程详细记录下来方便大家参考. 常规的PHP配置方式有很多种,例如CGI.fast-cgi.apache module handle.cli.isapi这些. CGI (通用网关接口 / Common Gateway Interface) Fast CGI (常驻型CGI / Long-Live CGI) CLI (命令行运行 / Command Line Interfac

升级CUDA版本导致VS2010错误:未找到导入的项目XXX,请确认&lt;Import&gt;声明中的路径正确,且磁盘上存在该文件。。。。

VS2010错误:未找到导入的项目XXX,请确认<Import>声明中的路径正确,且磁盘上存在该文件. E:\IGSNRR\dev\PhDThesisCode_CUDA\gtcg\gtcg.vcxproj : error : 未找到导入的项目“C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.5.props”.请确认 <Import> 声明中的路径正确,且磁盘上存在该文件. E:

刘德:小米已投89家生态链企业 有品要做百亿电商平台(本质上是是利用了小米的大火炉的余热,但也有反向的正面作用)

小米科技联合创始人.副总裁,小米生态链负责人刘德(微博)文/腾讯科技 王潘 小米对生态链企业的投资正在接近雷军(微博)当初预期的100家目标,截至6月30日,小米已经投资了89家. 通过三年左右的布局,小米投资的多家生态链企业都在市场上有不错的表现,如小米手环和移动电源都已经成为全球销量第一的产品. 小米科技联合创始人.副总裁,小米生态链负责人刘德今日在接受腾讯科技专访时说,小米生态链之所以能做起来,本质是享受了小米的红利,小米相当于一个火炉,是有余热的,不用也许就浪费了,所以就利用到这些生态链

【转】NPAPI 插件无法在 Chrome 42 版及更高版本上正常运行

原文网址:https://support.google.com/chrome/answer/6213033 NPAPI 插件无法在 Chrome 42 版及更高版本上正常运行 您可以利用插件在浏览器中添加一些额外的功能.例如,您可以观看某些类型的视频或者玩网页版游戏. NPAPI 支持已结束 过去,许多插件都是使用一种称为 NPAPI 的旧系统开发的.如今,只有少量网站在使用 NPAPI 插件,因为这些插件有时会给网站带来安全风险. 为了让用户获得更安全.更快速且更稳定的 Chrome 浏览体验

Web---文件上传-用apache的工具处理、打散目录、简单文件上传进度

我们需要先准备好2个apache的类: 上一个博客文章只讲了最简单的入门,现在来开始慢慢加深. 先过渡一下:只上传一个file项 index.jsp: <h2>用apache的工具处理文件上传</h2> <!-- 先过渡一下:只上传一个file项 --> <form action="<%= request.getContextPath() %>/upload" method="post" enctype=&quo

关于oracle db 11gR2版本上的_external_scn_rejection_threshold_hours参数和scn headroom补丁问题

来自于: Installing, Executing and Interpreting output from the "scnhealthcheck.sql" script (文档 ID 1393363.1) 第一点: In addition to the above result the script output may advise to set the hidden parameter "_external_scn_rejection_threshold_hours

中国银联ecshop 在线支付接口开发,php语言,在shopnc,ecshop,shopex,ecmall,xpshop,ectouch等的wap版本上完美实现移动支付

中国银联的在线支付接口PC版大家应该不在话下,但是中国银联手机移动支付接口做过的人就很少了.本人有幸和中国银联手机移动支付接口的开发者孙晨岚有过几个小时的讨论,也为客户做了几个中国银联手机移动支付接口.php语言开发的接口,在普遍流行的ecshop,shopex,ecmall等的wap版本上完美实现移动支付.    function get_code($order, $payment) { // 订单相关时间        // echo "yigang";        $order