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、引用传递:将变量值的保存的地址传递给另一变量,两个变量指向同一内存空间,引用传递符号 &

     魔术常量

    文件包含

     

     

     

     

  • 相关阅读:
    PAT甲级——1095 Cars on Campus (排序、映射、字符串操作、题意理解)
    PAT甲级——1096 Consecutive Factors (数学题)
    PAT甲级——1097 Deduplication on a Linked List (链表)
    博客作业06--图
    博客作业05--查找
    博客作业04--树
    博客作业03--栈和队列
    博客作业2---线性表
    博客作业01-抽象数据类型
    C语言最后一次作业--总结报告
  • 原文地址:https://www.cnblogs.com/tudoo/p/14367383.html
Copyright © 2011-2022 走看看