社区
Apache
帖子详情
apache作https转发,httpd.conf和httpd-ssl.conf怎么配置的
2391893748
2017-08-04 04:06:20
Apache同时做了 80 http转发和https转发,前者正常,后者失败,访问https时候,页面返回 forbidden 禁止访问,我猜测是httpd-ssl.conf 中DocumentRoot配置不对,但是怎么改都forbidden ,访问不到我的网站,百度一大堆,没有解决,有没有人知道该怎么配置.系统是linux 的CentOS 7.0 64位 Apache 是2.4.9版本的
...全文
314
回复
打赏
收藏
apache作https转发,httpd.conf和httpd-ssl.conf怎么配置的
Apache同时做了 80 http转发和https转发,前者正常,后者失败,访问https时候,页面返回 forbidden 禁止访问,我猜测是httpd-ssl.conf 中DocumentRoot配置不对,但是怎么改都forbidden ,访问不到我的网站,百度一大堆,没有解决,有没有人知道该怎么配置.系统是linux 的CentOS 7.0 64位 Apache 是2.4.9版本的
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
搭建企业级 yum 仓库实战课程
详解 yum
配置
文件和 yum主要命令 06. 重建规划 yum服务器
配置
07. 同步 CentOS v 6.x and 7.x 版本 Base和 epel源 08. 从自建yum源 6.x版本,安装
http
d服务 09. 从自建yum源 7.x版本,安装Nginx服务 10. 版本 6.x ...
apache
配置
文件
http
d.
conf
----小白福利
安装
apache
首先yum方式安装
http
2.2 # yum install
http
d -y
http
d的主要目录 /etc/
http
d/
conf
/
http
d.
conf
主
配置
文件 /etc/
http
d/
conf
.d 子
配置
文件目录 /var/log/
http
d/ 日志文件目录(access.log error.log) ...
Apache
配置
文件
http
d.
conf
的理解
http
d.
conf
是
Apache
使用的主要
配置
文件: 1.文件位置, 一般在:C:\wamp64\bin\
apache
\
apache
2.4.51\
conf
2. # 是注释符号: 1)解释每一指令的
作
用,2)指令模板,有时去掉#就能使用 3.Unix/Linux 用 /,如: /etc/
http
d/
conf
/
http
d.
conf
windows用 \,如: D:\xampp\
apache
\
conf
\
http
d.
conf
4.ServerName:
http
访问/回应的网站名,即你注册的DNS网
关于
Apache
配置
文件
http
d.
conf
的深入理解
Apache
的
配置
由
http
d.
conf
文件
配置
,因此下面的
配置
指令都是在
http
d.
conf
文件中修改。 一、主站点的
配置
(基本
配置
) 1、 基本
配置
: ServerRoot "/mnt/software/
apache
2" #你的
apache
软件安装的位置。其它指定的目录如果没有指定绝对路径,则目录是相对于该目录。 PidFile logs/
http
d.pid #第一个
http
d进程(所有其他进程的父进程)的进程号文件位置。 Listen 80 #服务器监听的端口号。 ServerName www.clu
Apache
配置
虚拟主机
http
d-vhosts.
conf
版本:
Apache
2.4.x 一、
配置
虚拟主机需要3个文件 1、
Apache
/
conf
/
http
d.
conf
2、
Apache
/
conf
/extra/
http
d-vhosts.
conf
(这个地版本的
apache
可能没有,可自己创建,也可以不要此文件, 而将
配置
直接写在
http
d.
conf
里面,写在extra/
http
d-vhosts.
conf
只是为了管理方便,不让htt
Apache
24,923
社区成员
16,548
社区内容
发帖
与我相关
我的任务
Apache
Web 开发 Apache
复制链接
扫一扫
分享
社区描述
Web 开发 Apache
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章