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

     魔术常量

    文件包含

     

     

     

     

  • 相关阅读:
    使用 Facebook开源动画库 POP 实现真实衰减动画
    在命名空间下定义类型
    作为程序猿我给csdn博客加入打赏功能
    linux高可用集群heartbeat实现http的高可用
    杭电 HDU 1247 ACMHat’s Words(trie树 或着STL)
    取石子(一)-博弈数论
    区块链技术开发怎么结合已有产业链落地?
    KafkaConsumer assign VS subscribe
    KafkaConsumer assign VS subscribe
    KafkaConsumer assign VS subscribe
  • 原文地址:https://www.cnblogs.com/tudoo/p/14367383.html
Copyright © 2011-2022 走看看