centos中apache配置

来源:互联网 发布:存储数据的最小单位 编辑:程序博客网 时间:2024/05/07 15:33

  • httpd做图片服务器

httpd做图片服务器

1.修改httpd.conf文件

vim /etc/httpd/conf/httpd.conf

添加一下内容

Alias /img/ "/data/imgServer/img/"<Directory "/data/imgServer/img">    Options Indexes MultiViews FollowSymLinks    AllowOverride None    Order allow,deny    Allow from all</Directory>

2.重启apache

service httpd restart
0 0
原创粉丝点击