首页 > Web开发 > 详细

Apache

时间:2021-02-03 18:06:24      阅读:23      评论:0      收藏:0      [点我收藏+]

配置文件位置

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

技术分享图片

 

 

 

 

 魔术常量

技术分享图片

 

 

文件包含

技术分享图片

 

 

 技术分享图片

 

 

技术分享图片

 

 

技术分享图片

 

 技术分享图片

 

 技术分享图片

 

 技术分享图片

 

Apache

原文:https://www.cnblogs.com/tudoo/p/14367383.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!