zoukankan      html  css  js  c++  java
  • Apache

    配置文件位置

    安装目录的 conf/httpd.conf 文件里

    关键配置

    DocumentRoot

    # DocumentRoot: The directory out of which you will serve your documents. By default, all requests are taken from this directory, but symbolic links and aliases may be used to point to other locations.

    例:DocumentRoot "D:/Deployment/www"

    ServerName

    # ServerName gives the name and port that the server uses to identify itself.
    # This can often be determined automatically, but we recommend you specify
    # it explicitly to prevent problems during startup.
    #
    # If your host doesn't have a registered DNS name, enter its IP address here.
    #
    例:ServerName localhost

    Listen

    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    #
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses.
    #
    #Listen 12.34.56.78:80


    例:Listen 127.0.0.1:8020

    LoadMoudle

    #
    # Dynamic Shared Object (DSO) Support
    #
    # To be able to use the functionality of a module which was built as a DSO you
    # have to place corresponding `LoadModule' lines at this location so the
    # directives contained in it are actually available _before_ they are used.
    # Statically compiled modules (those listed by `httpd -l') do not need
    # to be loaded here.

     Example:      module_name    path
     LoadModule foo_module modules/mod_foo.so

    PHP执行过程

    变量传值

    1、值传递:变量保存的值复制一份,将复制的值传给另一变量,两个变量指向不同内存空间

    2、引用传递:将变量值的保存的地址传递给另一变量,两个变量指向同一内存空间,引用传递符号 &

     魔术常量

    文件包含

     

     

     

     

  • 相关阅读:
    矩阵树定理 / 生成树计数
    NC20811 蓝魔法师 (树形DP/树上01背包)
    Xor-MST学习/ 2020牛客暑假多校(五)B.Graph
    HDU-6820 Tree (2020杭电多校(五) 1007)
    Flipping Coins (概率DP)
    宝石装箱 容斥+dp
    Rabbit的工作(1) (dP)
    Codeforces-1350 E.Orac and Game of Life
    HDU-6563 Strength (贪心)
    HDU-6558 The Moon (期望DP)
  • 原文地址:https://www.cnblogs.com/tudoo/p/14367383.html
Copyright © 2011-2022 走看看