服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. apache 2.2 apache 2.4 configuration
  3. 在Apacheconfiguration文件的其他部分使用DocumentRoot作为variables
Intereting Posts
如果你不用sysprep映像会怎么样? 阻止UserAgent libwww-perl与.htaccess不工作? Apache access.log中填充了wpad.dat的GET请求 解决DHCP范围耗尽 – 多个/ 24个子网或单个/ 23个子网? 交换2010 /outlook2010空白电子邮件机构 如何将主机组设置为Fail2ban for WordPress? IPSec和WinPE在MDT 2010序列中的交互 具有多个IP的IIS站点? 如何使用OpenSSH SFTP服务器检测或logging中断上传? 我如何列出我的SSH服务器支持的MAC,密码和KexAuthority? 服务器操作系统和应用程序的物理到物理迁移 我在哪里可以报告ASP.NET浏览器文件的问题? WMI远程连接objsWbemLocator.ConnectServer 保存没有mysqldump的MySQL数据库 Nagios + Nginx:CSS和图像问题

在Apacheconfiguration文件的其他部分使用DocumentRoot作为variables

有没有办法使用DocumentRoot作为Apache的网站configuration文件的其他部分的variables?

如下所示:

DocumentRoot /var/www/myNiceRoot <Directory $DocumentRoot/mySubDir> ... </> 

  • 设置让我们encryption我的域名和所有的子域名
  • 总访问速度非常快 – Apache mod_status
  • 如何在Centos 6中删除Apache webserver
  • Apache:实际版本发布date与服务器构builddate?
  • <IfModule>在.htaccess中做什么?

  • Apache语法错误
  • 主域的redirect正在被子域触发
  • configurationHAProxy根据url_param路由stream量
  • 重写规则以重新编写旧的到漂亮的URL
  • 如何使用NVM切换Apache用户的节点版本('www-data') – function严重受限的用户?

你可以定义一个variables然后使用它

 Define droot /var/www/html 

然后再使用它

 DocumentRoot ${droot}/site1 

等等。

  • .htaccess拒绝/允许我当前规则中的特定文件夹
  • 针对两个Web应用程序的Apache反向代理:一个在远程机器上的另一个本地主机上
  • 我可以通过.htaccess禁用ModSecurity规则吗?
  • Apache重写URL以被AliasMatch捕获
  • Apache 2.2redirect所有,但一个目录
  • 暴力强制IP
  • Htaccess重写到位于一个级别的文件
  • Apache的.htaccess语法中的(即禁止)的反义词是什么?
  • 用简单的重写规则“请求超过了10个内部redirect的限制”
  • 404页显示页面的名称

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy