分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > IT知识

apache2.4 httpd.conf httpd-vhost.conf配置

发布时间:2023-09-06 02:05责任编辑:郭大石关键词:apache配置http

extra / httpd-vhost.conf

<VirtualHost *:81> ???DocumentRoot "/data/sda1_data/" ???ServerName nemtech.cn ???ServerAlias nemtech.cn ???ServerSignature Off ?????ErrorLog "logs/nemtech.cn-error_log" ???CustomLog "logs/nemtech.cn-access_log" common ?<Directory /data/sda1_data/> ???????Options Indexes ???????IndexOptions Charset=UTF-8 ???????ReadmeName ?/footer.html ???????IndexIgnore footer.html bk.jpg alipay.jpg wechatpay.jpg ????????Order deny,allow ???????Allow ?from all ???????AllowOverride AuthConfig ????????AuthName "Personal web Auth!" ????????AuthType Basic ???????AuthUserFile /data/.htpasswd ????????require valid-user ??????????????SetEnvIfNoCase Referer "nemtech.cn" local_ref ???????SetEnvIfNoCase Referer "^$" local_ref ????????<filesmatch "\.(txt|doc|mp3|zip|rar|jpg|gif)"> ???????????Order Allow,Deny ???????????Allow from env=local_ref ???????</filesmatch> ???????</Directory></VirtualHost>

httpd.conf

```

httpd-mpm.conf 为apache连接数配置

apache2.4 httpd.conf httpd-vhost.conf配置

原文地址:https://www.cnblogs.com/zhaocundang/p/9360423.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved