debian安装apache2成功之后,在web请求显示的文档 翻译

时间:2022-05-23 18:42:11

 It works!   它已经成功运行了

This is the default welcome page used to test the correct operation of the Apache2 server after installation on Debian systems. If you can read this page, it means that the Apache HTTP server installed at this site is working properly. You shouldreplace this file (located at /var/www/html/index.html) before continuing to operate your HTTP server.

这是用于在Debian系统安装后测试apache e2服务器正确操作的默认欢迎页面。。如果你可以看到这个页面,这就意味着安装在该站点的ApacheHttpserver正常工作。在继续操作这个httpserver之前 你可以替换这个文件(位置 /var/www/html/index.html

If you are a normal user of this web site and don't know what this page is about, this probably means that the site is currently unavailable due to maintenance. If the problem persists, please contact the site's administrator

如果你是这个web站点普通的用户,不知道这个页面是关于什么的,这可能意味着当前这个站点由于正在维护不可用。如果这个问题依然存在,请联系这个站点的管理员。

Configuration Overview 配置综述

Debian's Apache2 default configuration is different from the upstream default configuration, and split(分离) into several(各自的) files optimized for interaction with Debian tools.

Debianapache2默认配置与上游的默认配置是不同的,并且分离为各自的文件更好的和debian工具相互交互

The configuration system is fully documented(文档) in /usr/share/doc/apache2/README.Debian.gz.

配置文件在/usr/share/doc/apache2/README.Debian.gz位置被完全的文档化

Refer to this for the full documentation. Documentation(文档驱动) for the web server itself can be found by accessing themanual(手册) if the apache2-doc package was installed on this server.

还有一份更更加完善的文档可以作为参考。如果apache2-doc包已经安装在这个系统,则文档驱动为web系统提供了自己的手册可以被访问

The configuration layout(布局) for an Apache2 web server installation on Debian systems is as follows:

Debian系统下安装Apache2 webserver配置布局,如下

/etc/apache2/

|-- apache2.conf

|       `--  ports.conf

|-- mods-enabled

|       |-- *.load

|       `-- *.conf

|-- conf-enabled

|       `-- *.conf

|-- sites-enabled

|       `-- *.conf

· apache2.conf is the main configuration file. It puts the pieces(文件片)together by including all remaining(剩余的) configuration files when starting up the web server.

· Apache2.conf是主要的配置文件。当启动webserver的时候他将所有剩余配置文件放置到文件片中。

· ports.conf is always included from the main configuration file. It is used to determine(确定) the listening ports for incoming connections, and this file can be customized anytime.

· Ports.conf一直存在于主要的配置的文件中,它是被用于确定引入连接的监听端口,并且这个文件可以随时被定义

· Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/ directories contain(包含) particular(个别的) configuration snippets(片段) which manage modules(模块), global configuration fragments(碎片), or virtual host configurations, respectively.

·  mods-enabled/配置文件,conf-enabled/ sites-enabled/  目录包含个别的配置片段、管理模块、全局的配置碎片或者个别的虚拟主机配置

· They are activated by symlinking(链接) available(可用的) configuration files from their respective(各自的) *-available/ counterparts(副本). These should be managed by using our helpers a2enmod, a2dismod, a2ensite, a2dissite, and a2enconf, a2disconf . See their respective man pages for detailed information.

· 他们被来自他们各自的*-available/链接可用的配置文件副本激活。这些应该由我们的助手a2enmod, a2dismod, a2ensite, a2dissite, and a2enconf, a2disconf来管理。请参阅他们各自的手册页以获取详细信息。

· The binary(二进制) is called apache2. Due to the use of environment variables, in the default configuration, apache2 needs to be started/stopped with /etc/init.d/apache2 or apache2ctl.Calling /usr/bin/apache2 directly will not work with the default configuration.

· 这二进制叫做apache2,由于环境变量的使用,在默认的配置文件中,apache2需要started/stopped /etc/init.d/apache2 或者 apache2ctlCalling /usr/bin/apache2 目录将不会使用默认的 

Document Roots 根目录

By default, Debian does not allow access through the web browser(浏览器) toany file apart of those located in /var/www, public_html directories (when enabled) and /usr/share (for web applications). If your site is using a web document root located elsewhere (such as in /srv) you may need to whitelist your document root directory in /etc/apache2/apache2.conf.

在默认情况下,debian不允许通过web浏览器去访问那些位于/var/www下的任何文件,public-html目录(当允许时)和/usr/share(web app)。如果你的站点正在使用一个web别处位置的根目录(例如in /srv)你需要将你的根目录/etc/apache2/apache2.conf.加入白名单。

The default Debian document root is /var/www/html. You can make your own virtual hosts under /var/www. This is different to previous releases which provides better security out of the box.

out of the box:内存不足

debian系统里面默认的根目录是/var/www/html。你可以制作你自己的虚拟主机在/var/www下。这是不同的以前版本不同,后者提供了更好的安全性

Reporting Problems请求问题

Please use the reportbug tool to report bugs in the Apache2 package with Debian. However, checkexisting bug reports before reporting a new bug.

请使用resportbug工具报告apache2中的问题。无论怎样,检查现存的问题报告在报告新的错误前

Please report bugs specific to modules (such as PHP and others) to respective packages,not to the web server itself.

请将特定于模块(如phpothers)的bug报告到各自的包中,而不是web服务器本身