首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏友儿

    DocumentRoot

    解释LINUX以下的参数:DocumentRoot和DirectoryIndex的作用 1.DocumentRoot DocumentRoot指定apache服务器网页(文档)根目录 DocumentRoot 2.DirectoryIndex DirectoryIndex是在只指定目录的情况下默认显示的文件名 DirectoryIndex home.html index.html index.html.var index.shtml 作用是我打开网站时,输入 域名或者url+目录,如果目录下存在DirectoryIndex设置的文件名的文档,home.html index.html 等,默认就打开这样的文件

    60020编辑于 2022-07-27
  • 来自专栏孤鸿

    CentOS7配置Apache多站点VirtualHost

    ServerName wscon.cn ServerAlias wscon.cn www.wscon.cn DocumentRoot /var/www/html/site1 DirectoryIndex ServerName wsczx.com ServerAlias wsczx.com www.wsczx.com DocumentRoot /var/www/html/site2/ DirectoryIndex ServerName test.wsczx.com # ServerAlias wsczx.com www.wsczx.com DocumentRoot /var/www/html/site3/ DirectoryIndex

    86910编辑于 2022-09-23
  • 来自专栏Man_Docker

    nagios监控安装部署

    openssl-devel gcc gcc-c++ 2、整合Apache和PHP=lamp cat /etc/httpd/conf/httpd.conf | grep -v "^#"|grep -w "DirectoryIndex " DirectoryIndex index.php index.html cat /etc/httpd/conf/httpd.conf | grep -w "AddType application

    1.2K10发布于 2020-10-26
  • 来自专栏知识分享

    4-STM32物联网开发系统方案微信小程序篇

    DirectoryIndex  index.html  一开始默认是这样 我修改成这样  DirectoryIndex  index.php  index.html 注意哈,这样默认访问的是 index.php 文件 如果 DirectoryIndex  index.html  index.php  这样默认访问的是index.html文件 咱在网站的根目录建一个index.php文件 ?

    2.1K20发布于 2019-06-17
  • 来自专栏落叶大大

    Apache多站点配置及禁止IP访问网站

    ## tb.onm.me <virtualhost *:80> DocumentRoot /xxx/web/tieba ServerName tb.onm.me DirectoryIndex virtualhost *:80> DocumentRoot /xxx/web/shudong ##网站路径 ServerName su.onm.me ##域名 DirectoryIndex

    3.7K160发布于 2018-05-16
  • 来自专栏全栈程序员必看

    [Linux CentOS7] Web服务器搭建和设置[通俗易懂]

    etc/httpd/conf/httpd.conf 添加到最后: <VirtualHost 192.168.1.2:80> DocumentRoot /var/www/html/12 DirectoryIndex index.html </VirtualHost> <VirtualHost 192.168.1.3:80> DocumentRoot /var/www/html/13 DirectoryIndex Listen 8000 Listen 8800 添加到最后: <VirtualHost 192.168.1.2:8000> DocumentRoot /var/www/html/8000 Directoryindex index.html </VirtualHost> <VirtualHost 192.168.1.2:8800> DocumentRoot /var/www/html/8800 Directoryindex

    4.6K11编辑于 2022-08-24
  • 来自专栏全栈程序员必看

    【Linux】 Apache配置文件详解「建议收藏」

    Listen 80 #监听80端口 MaxClients 256 #指定同时能访问服务器的客户机数量为256 DocumentRoot "/var/www/html" #网页文件存放的目录 DirectoryIndex DocumentRoot “/var/www/html” #网站页面根目录 144 Options Indexes FollowSymLinks #当一个目录没有默认首页时,允许显示此目录列表 改:164 DirectoryIndex index.html 为:164 DirectoryIndex index.html index.php #指定默认首页 316 AddDefaultCharset UTF-8 #设置服务器的默认编码为

    3.9K20编辑于 2022-09-14
  • 来自专栏服务器安全专线

    Apache 虚拟目录和默认首页的设置

    allow,deny   Allow from all </Directory> 3.重启Apache 设置默认页面 方法1 设置全局的: 复制代码代码如下: <IfModule dir_module> DirectoryIndex D:/php/web/aidd2008"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all DirectoryIndex

    2.8K00发布于 2019-07-31
  • 来自专栏gojam技术备忘录

    Mac配置PHP运行环境

    <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch> Finally, check DirectoryIndex includes index.php DirectoryIndex index.php index.html The php.ini and php-fpm.ini file can be

    2.7K30发布于 2019-05-14
  • 来自专栏全栈程序员必看

    Apache和PHP结合

    PHP结合 配置httpd支持PHP ServerName Require all denied AddType application/x-httpd-php .php //解析PHP DirectoryIndex tgz 增加 AddType application/x-httpd-php .php //增加这一行的目的是为了解析php文件 找到 <IfModule dir_module> DirectoryIndex index.html </IfModule> 增加为 <IfModule dir_module> DirectoryIndex index.html index.php //增加一个索引页index.php

    1.5K20编辑于 2022-09-14
  • 来自专栏全栈程序员必看

    搭建php运行环境_php开发环境搭建步骤

    图片         3.4.2、修改默认的索引,以支持 PHP :             修改前: # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # <IfModule dir_module> DirectoryIndex index.html </IfModule >             修改后: # DirectoryIndex: sets the file that Apache will serve if a directory # is requested . # <IfModule dir_module> DirectoryIndex index.html index.php index.htm </IfModule>         3.4.3

    18K20编辑于 2022-11-09
  • 来自专栏linux教程

    windows2003 apache配置虚拟主机和绑定域名服务

    /webroot/myenjoylife” #www.myenjoylife.cn要指向的目录,注意一定要有””   ServerName www.myenjoylife.cn #第一个网站域名   DirectoryIndex DocumentRoot “E:/webroot/51duanxin” #www.51duanxin.net要指向的目录,注意一定要有””   ServerName www.51duanxin.net #所要绑的玉米   DirectoryIndex

    4.2K20编辑于 2023-04-26
  • 来自专栏Owen's World

    Mac项目部署步骤

    配置错误页不显示Apache版本 Options Indexes FollowSymLinks => Options FollowSymLinks // 配置Apache不能通过目录层级进行文件访问 DirectoryIndex index.html => DirectoryIndex index.html index.php // 配置Apache支持.php文件解析 二 以后每添加一个站点执行以下操作 1: hosts

    71810编辑于 2021-12-08
  • 来自专栏devops探索

    bugzilla安装详解

    Directory /var/www/html/bugzilla> AddHandler cgi-script .cgi Options +Indexes +ExecCGI DirectoryIndex Directory /var/www/html/bugzilla2> AddHandler cgi-script .cgi Options +Indexes +ExecCGI DirectoryIndex

    1.4K10发布于 2020-07-31
  • 来自专栏全栈程序员必看

    PHP开发环境搭建[通俗易懂]

    修改httpd.conf中的DocumentRoot和“<Directory “D:/software/httpd/htdocs”>”,设置为你的workspace;修改“DirectoryIndex index.html”为“DirectoryIndex index.php index.html” 6.

    3.6K30编辑于 2022-10-05
  • 来自专栏前端进阶学习交流

    windows server2016 数据中心Apache+PHP+MySQL环境搭建

    Directory "${SRVROOT}/htdocs"> 将${SRVROOT}/htdocs修改成你自己网站的路径就可以了 (5)、修改默认页 大概在279行找到 <IfModule dir_module>DirectoryIndex index.html</IfModule> DirectoryIndex index.html 中index.html就是默认页面如果有多个默认页可以用空格隔开 4、安装启动Apache win+x, > 然后(Apache24le\conf\http.conf)配置文件进行修改 DirectoryIndex index.html#改为DirectoryIndex index.php index.html

    1.3K50发布于 2020-11-26
  • 来自专栏AI码真香

    Windows 下搭建 MySQL+Apache +PHP 环境

    目录结构基本认识,有点类似tomcat的目录结构: 打开 Apache24\conf 目录下的 httpd.conf,修改配置信息: 修改ServerRoot、DocumentRoot、DirectoryIndex DocumentRoot "E:/php/SmartCommunity" #<Directory "${SRVROOT}/htdocs"> <Directory "E:/php/SmartCommunity"> #修改DirectoryIndex 文件类型 #修改前: <IfModule dir_module> DirectoryIndex index.html </IfModule> #修改后: <IfModule dir_module > DirectoryIndex index.html index.php index.htm </IfModule> 修改端口和ServerName,默认是监听80端口,根据自己需要修改(注意

    3.8K10编辑于 2022-09-13
  • 来自专栏cwl_Java

    PHP-服务器配置

    _default_:80> DocumentRoot "C:\web1" #指定虚拟目录路径 ServerName www.baidu.com # 虚拟目录绑定的域名 DirectoryIndex Directory> </VirtualHost> <VirtualHost _default_:80> DocumentRoot "C:\web2" ServerName www.sina.com DirectoryIndex

    2.6K10发布于 2020-03-25
  • 来自专栏linux教程

    windows下apache+php+mysql 环境配置方法

    /Apache2.2/htdocs” 改为 复制代码 代码如下: DocumentRoot “D:/servers/phpweb” 复制代码 代码如下: 改为 复制代码代码如下: 复制代码代码如下: DirectoryIndex index.html 改为 复制代码代码如下: DirectoryIndex index.php index.html 重启apache mysql配置 略 四 测试 建立phpweb目录 D:serversphpweb

    1.8K20编辑于 2023-04-26
  • 来自专栏前端资源

    Apache服务器及虚拟主机配置域名访问本地项目路径

    ServerAdmin 管理员通信地址 DocumentRoot 站点根目录 ServerName 站点绑定的域名,一般不带www ServerAlias 站点绑定的别名,带www或者其他前缀的域名 DirectoryIndex w3h5.com"   DocumentRoot "E:/workspace/demo/w3h5"   ServerName w3h5.com   ServerAlias  www.w3h5.com   DirectoryIndex

    5.5K20发布于 2019-11-13
领券