linux中openSUSE 的 Apache配置步骤细解

  本文章介绍的目的就是实现在 openSUSE 13.1 系统下,配置 Apache 服务器绑定 www.phpfensi.com二级域名,具体配置步骤如下.
 
  DNS 绑定 A 记录#
 
  首先在 DNS 上创建 A 记录,将域名绑定到相应 IP 上.

  配置 Apache#
 
  创建虚拟主机配置文件#,代码如下:
 
  $ cd /etc/apache2/vhosts.d
  $ sudo cp vhost.template www.phpfensi.com.conf
  
  访问 www.phpfensi.com 网址,已经可以看到 index.html 文件的内容了,如果我们之前未添加 index.html 文件,访问的话,则会出现如下错误信息:
 
  Access forbidden!
  You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.
  If you think this is a server error, please contact the webmaster.
  Error 403
  www.phpfensi.com。
 

dawei

【声明】:站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。