嘛小弟我資直愚笨…實在看不懂其他大大寫的文,所以只好從Apache給的原文下手了….

Apache2 Ubuntu Default Page: It worksApache2 Ubuntu Default Page
This is the default welcome page used to test the correct
operation of the Apache2 server after installation on Ubuntu systems.
It is based on the equivalent page on Debian, from which the Ubuntu Apache
packaging is derived.
這是用來測試是否正確安裝的預設頁面,在Ubuntu系統上安裝後運作的Apache2伺服器,它是相當於Debian上的網頁,從Ubuntu上的Apache封裝導出。
If you can read this page, it means that the Apache HTTP server installed at
this site is working properly. You should replace this file (located at
/var/www/html/index.html) before continuing to operate your HTTP server.
如果你可以看到這頁面,這意味著Apache HTTP伺服器安裝後正常運作,您可以替換該文件 (located at
/var/www/html/index.html)持續經營HTTP伺服器。
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.
如果問題依然存在請連繫網站管理員。
Configuration Overview
設定概述
Ubuntu’s Apache2 default configuration is different from the
upstream default configuration, and split into several files optimized for
interaction with Ubuntu tools. The configuration system is
fully documented in
/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 the manual if the apache2-doc
package was installed on this server.
Ubuntu的Apache2預設配置是不同的上層預設配置,並優化分成幾個文件與 Ubuntu的工具互動,完整的系統配置紀錄於(/usr/share/doc/apache2/README.Debian.gz).請閱讀此文件。如 果apache2的文件包已經安裝在此伺服器上,說明文件再web伺服器中可以通過手冊存取。
The configuration layout for an Apache2 web server installation on Ubuntu systems is as follows:
用於Ubuntu系統中的Apache2 Web伺服器安裝配置的樹狀圖如下:
/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是主設定文件,它包含了Web伺服器上所有設定的初始文件。
  • 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再 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, anda2enconf,a2disconf . See their respective man pages for detailed information.
  • 它們是由符號鏈接可以啟動各自的設定文件*-available/ counterparts.這些應該利用我們的幫手進行管理a2enmod,a2dismod,a2ensite,a2dissite, anda2enconf,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中需要啟動/停止用(/etc/init.d/apache2)或者(apache2ctl)。 調用(/ usr/ bin/ Apache2)直接將未使用默認配置工作。
Document Roots
文件根目錄
By default, Ubuntu does not allow access through the web browser to
any file apart of those located in /var/www,
public_html
在默認情況下,Ubuntu的不允許通過web瀏覽器來訪問
除了那些位於/ 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.
目錄中(when enabled)和/usr/share(用於Web
應用程序)。如果您的網站使用的是Web文檔根目錄
位於其他地方(如/srv),你可能需要你的白名單
/etc/apache2/apache2.conf
The default Ubuntu 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.
Ubuntu默認文檔根目錄是/ var/ www / html等。您
可以在/ var/www 製作自己的虛擬主機。這是不同於
以前的版本中,它提供較好的安全性盒子。
Reporting Problems
報告問題
Please use the ubuntu-bug tool to report bugs in the
Apache2 package with Ubuntu. However, check existing
bug reports
before reporting a new bug.
請使用Ubuntu的工具的bug報告中的錯誤
Apache2的封裝與Ubuntu。然而,現有的檢查
報告新的錯誤之前的錯誤報告。
Please report bugs specific to modules (such as PHP and others)
to respective packages, not to the web server itself.
請報告具體的bug模塊(如PHP等)
到相應的包,不是以網頁服務器本身。
Valid XHTML 1.0 Transitional


--
由 Blogger 於 10/30/2014 10:48:00 下午 張貼在 mahir
arrow
arrow
    全站熱搜

    mahir 發表在 痞客邦 留言(0) 人氣()