请选择 进入手机版 | 继续访问电脑版

Websoft9技术社区(旧版)

 找回密码
 立即注册
查看: 675|回复: 2

腾讯云win2012r2-wampstack-7.0.7-0域名访问 403错误

[复制链接]

2

主题

5

帖子

18

积分

新手上路

Rank: 1

积分
18
发表于 2016-9-23 11:21:23 | 显示全部楼层 |阅读模式
你好 管理员,镜像安装完成后,我按步骤一步一步设置。然后IP及localhost可以访问,但域名提示403错误。
就换了根目录,其他的没动。请求帮助
# Bitnami applications installed in a Virtual Host
<VirtualHost *:80>
ServerAdmin admin@weibosay.com
DocumentRoot "c:\www1docs\weibosaycom"
ServerName www.weibosay.com
ServerAlias www.weibosay.com weibosay.com
ErrorLog "logs/demo.websoft9.cn-error.log"
CustomLog "logs/demo.websoft9.cn-access.log" common
   <Directory "c:\www1docs\weibosaycom" >
        Options Indexes FollowSymLinks
        AllowOverride all
        Order allow,deny
        Allow from all
   </Directory>
</VirtualHost>
————————————————————————————————————————————————————————————
# Default Virtual Host configuration.
<IfVersion < 2.3 >
  NameVirtualHost *:80
  NameVirtualHost *:443
</IfVersion>
<VirtualHost _default_:80>
  DocumentRoot "C:/www1docs"
  <Directory "C:/www1docs">
    Options Indexes FollowSymLinks
    AllowOverride All
    <IfVersion < 2.3 >
      Order allow,deny                          
      Allow from all
    </IfVersion>
    <IfVersion >= 2.3 >
      Require all granted
    </IfVersion>
  </Directory>
。。。。。。。。。。。。

<VirtualHost _default_:443>
  DocumentRoot "C:/www1docs"
  SSLEngine on
SSLCertificateFile "C:/websoft9/wampstack-7.0.7-0/apache2/conf/server.crt"
SSLCertificateKeyFile "C:/websoft9/wampstack-7.0.7-0/apache2/conf/server.key"
            
  <Directory "C:/www1docs">
    Options Indexes FollowSymLinks
    AllowOverride All
    <IfVersion < 2.3 >
      Order allow,deny                          
      Allow from all
    </IfVersion>
    <IfVersion >= 2.3 >
      Require all granted
    </IfVersion>
  </Directory>
——————————————————————————————————————————————————————
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1       localhost
# ::1             localhost

127.0.0.1 www.weibosay.com


回复

使用道具 举报

2

主题

5

帖子

18

积分

新手上路

Rank: 1

积分
18
 楼主| 发表于 2016-9-23 12:50:41 | 显示全部楼层
搞定了,httpd.conf 里也要改网站根目录
  1. DocumentRoot "C:/websoft9/wampstack-7.0.7-0/apache2/htdocs"
  2. <Directory "C:/websoft9/wampstack-7.0.7-0/apache2/htdocs">
复制代码

改成你的目录
回复 支持 反对

使用道具 举报

284

主题

396

帖子

1584

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1584
发表于 2016-9-23 15:27:20 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|官网首页|站点统计|Archiver|手机版|小黑屋|Websoft9技术社区(旧版) ( 湘ICP备16009117号

GMT+8, 2018-7-17 07:46 , Processed in 0.115956 second(s), 9 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表