国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

magento第二課:使用Apache web服務器搭建網(wǎng)站

loostudy / 1126人閱讀

摘要:官方文檔配置文件這是主要的服務器配置文件,它包含一些服務器的配置指令,詳情參考及查看特殊提示在中配置工作概述,它與服務器的配置有一些區(qū)別被分割成了多個文件,但所有的配置文件還是在文件夾中是主配置文件

apache2官方文檔 http://httpd.apache.org/docs/...

配置文件
# 這是apache主要的服務器配置文件,它包含一些服務器的配置指令,詳情參考 http://httpd.apache.org/docs/2.4/ 及查看Debian特殊提示 /usr/share/doc/apache2/README.Debian 
#
#
# 在Debian中Apache2配置工作概述,它與web服務器的配置有一些區(qū)別

# 被分割成了多個文件,但所有的配置文件還是在 /etc/apache2/ 文件夾中
#
#    /etc/apache2/
#    |-- apache2.conf
#    |    `--  ports.conf
#    |-- mods-enabled
#    |    |-- *.load
#    |    `-- *.conf
#    |-- conf-enabled
#    |    `-- *.conf
#     `-- sites-enabled
#         `-- *.conf
#
#
# * apache2.conf 是主配置文件. 
#
# * ports.conf 最終是包含到上面的主配置文件中. 
#
# * 在mods-enabled/, conf-enabled/ 和 sites-enabled/這幾個目錄下的配置文件,分別用來管理模塊、全局配置片段,虛擬主機配置
#   它們都是 *-available文件夾下的一個符號鏈接,也就是同windows下的快捷方式是同一種類型,對于是否啟用的管理,可以使用以下命令
#   如開啟rewrite模塊,使用 root@ubuntu:~# a2enmod rewrite,會生成鏈接/etc/apache2/mods-enabled/rewrite.load,關閉是 a2dismod rewrite
#   同樣對虛擬主機命令有 a2ensite和a2dissite,對全局配置有 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.


# 全局配置
#

#
# ServerRoot: 目錄樹的頂部,它下面放服務器的配置文件、錯誤和日志文件
#
# 提示!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the Mutex documentation (available
# at );
# you will save yourself a lot of trouble.
#
# 不要在目錄的結(jié)尾加斜杠
#
#ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:${APACHE_LOCK_DIR} default

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5


# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it"d be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a 
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a 
# container, that host"s errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log

#
# 日志級別: Control the severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn

# 導入模塊配置文件:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# 導入需要偵聽端口的列表
Include ports.conf


# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.

    Options FollowSymLinks
    AllowOverride None
    Require all denied



    AllowOverride None
    Require all granted



    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted


#
#    Options Indexes FollowSymLinks
#    AllowOverride None
#    Require all granted
#




# AccessFileName: 會在每個文件夾中查該文件,它包含一些附加配置指令,也可參閱指令 AllowOverride
#
AccessFileName .htaccess

#
# FilesMatch是一個正則表達式,表示以.ht開頭的文件,下面的意思是,象.htaccess 和 .htpasswd這一類以.ht開頭的文件,不能被web客戶端瀏覽

    Require all denied



#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"" vhost_combined
LogFormat "%h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# Include of directories ignores editors" and dpkg"s backup files,
# see README.Debian for details.

# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf

# 導入虛擬主機的配置:
IncludeOptional sites-enabled/*.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

虛擬主機設置
參考指令 http://httpd.apache.org/docs/...
建配置文件/etc/apache2/sites-available/www.chuse.store.conf,內(nèi)容如下


    ServerAdmin wang@chuse.store
    DocumentRoot /var/www/chuse/store
    ServerName www.chuse.store
    ErrorLog /var/log/apache2/www.chuse.store-error_log
    TransferLog /var/log/apache2/www.chuse.store-access_log

啟動網(wǎng)站

root@ubuntu:~# a2ensite www.chuse.store.conf
root@ubuntu:~# service apache2 restart

建一個測試文件 /var/www/chuse/store/index.php

修改宿主機中C:WindowsSystem32driversetchosts,加一行127.0.0.1 www.chuse.store

目錄映射

參考 https://www.jianshu.com/p/223...
參考 https://www.cnblogs.com/xing9...

文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請注明本文地址:http://specialneedsforspecialkids.com/yun/35921.html

相關文章

  • Magento2.0安裝詳細教程

    摘要:點擊開始檢查你的本地計算機環(huán)境是否符合安裝的要求。解決剛才遇到的問題后,重新檢查環(huán)節(jié),,即可看到環(huán)境符合安裝的要求,將會看到如下圖所示。接著點擊下一步,沒有太多要說的,接著下一步下一步傻瓜式點擊下一步到此,安裝結(jié)束。 1.環(huán)境要求:Apache: 2.2 or 2.4PHP: >=5.4.11 or 5.5xMySQL: 5.6x1.首先安裝好XAMPP集成開發(fā)環(huán)境包(其他集成開發(fā)環(huán)境...

    sewerganger 評論0 收藏0
  • 談一談云務器和主機建站配置要求 - 搭建網(wǎng)站需要的主機配置方案-老部落

    摘要:老蔣經(jīng)常看到有網(wǎng)友詢問搭建網(wǎng)站的時候主機和云服務器到底如何選擇及建站要求建站要求。第二機房選擇定位云服務器或者主機商的機房還是有很多的。當然,前者是需要備案的,后者亞洲機房不要備案。配置要求,我們還需要根據(jù)系統(tǒng)或者項目來決定。 老蔣經(jīng)常看到有網(wǎng)友詢問搭建網(wǎng)站的時候主機和云服務器到底如何選擇及建站要求。比如對于主機商的選擇、主機機房,以及配置要求等。確實,我們在看到各個云...

    Barry_Ng 評論0 收藏0
  • Vue.js學習二課 如何安裝

    摘要:安裝獨立版本我們可以在的官網(wǎng)上直接下載并用標簽引入。國內(nèi)會保持和發(fā)布的最新的版本一致。方法由于安裝速度慢,本教程使用了淘寶的鏡像及其命令,安裝使用介紹參照使用淘寶鏡像。 Vue.js 安裝 1、獨立版本 我們可以在 Vue.js 的官網(wǎng)上直接下載 vue.min.js 并用 標簽引入。 2、使用 CDN 方法 以下推薦國外比較穩(wěn)定的兩個 CDN,國內(nèi)還沒發(fā)現(xiàn)哪一家比較好,目前還是建議...

    stefanieliang 評論0 收藏0

發(fā)表評論

0條評論

最新活動
閱讀需要支付1元查看
<