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

資訊專(zhuān)欄INFORMATION COLUMN

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

loostudy / 1134人閱讀

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

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

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

# 被分割成了多個(gè)文件,但所有的配置文件還是在 /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/這幾個(gè)目錄下的配置文件,分別用來(lái)管理模塊、全局配置片段,虛擬主機(jī)配置
#   它們都是 *-available文件夾下的一個(gè)符號(hào)鏈接,也就是同windows下的快捷方式是同一種類(lèi)型,對(duì)于是否啟用的管理,可以使用以下命令
#   如開(kāi)啟rewrite模塊,使用 root@ubuntu:~# a2enmod rewrite,會(huì)生成鏈接/etc/apache2/mods-enabled/rewrite.load,關(guān)閉是 a2dismod rewrite
#   同樣對(duì)虛擬主機(jī)命令有 a2ensite和a2dissite,對(duì)全局配置有 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: 目錄樹(shù)的頂部,它下面放服務(wù)器的配置文件、錯(cuò)誤和日志文件
#
# 提示!  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

#
# 日志級(jí)別: 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

# 導(dǎo)入模塊配置文件:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# 導(dǎo)入需要偵聽(tīng)端口的列表
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: 會(huì)在每個(gè)文件夾中查該文件,它包含一些附加配置指令,也可參閱指令 AllowOverride
#
AccessFileName .htaccess

#
# FilesMatch是一個(gè)正則表達(dá)式,表示以.ht開(kāi)頭的文件,下面的意思是,象.htaccess 和 .htpasswd這一類(lèi)以.ht開(kāi)頭的文件,不能被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

# 導(dǎo)入虛擬主機(jī)的配置:
IncludeOptional sites-enabled/*.conf

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

虛擬主機(jī)設(shè)置
參考指令 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

啟動(dòng)網(wǎng)站

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

建一個(gè)測(cè)試文件 /var/www/chuse/store/index.php

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

目錄映射

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

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

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

相關(guān)文章

  • Magento2.0安裝詳細(xì)教程

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

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

    摘要:老蔣經(jīng)常看到有網(wǎng)友詢問(wèn)搭建網(wǎng)站的時(shí)候主機(jī)和云服務(wù)器到底如何選擇及建站要求建站要求。第二機(jī)房選擇定位云服務(wù)器或者主機(jī)商的機(jī)房還是有很多的。當(dāng)然,前者是需要備案的,后者亞洲機(jī)房不要備案。配置要求,我們還需要根據(jù)系統(tǒng)或者項(xiàng)目來(lái)決定。 老蔣經(jīng)常看到有網(wǎng)友詢問(wèn)搭建網(wǎng)站的時(shí)候主機(jī)和云服務(wù)器到底如何選擇及建站要求。比如對(duì)于主機(jī)商的選擇、主機(jī)機(jī)房,以及配置要求等。確實(shí),我們?cè)诳吹礁鱾€(gè)云...

    Barry_Ng 評(píng)論0 收藏0
  • Vue.js學(xué)習(xí)二課 如何安裝

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

    stefanieliang 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

最新活動(dòng)
閱讀需要支付1元查看
<