小编Tan*_*aei的帖子

在 AWS 路由 53 上配置通配符记录

我有一个在 Google Domains 中注册的域,并使用 AWS Route 53 作为 NS。\n该域有多个子域(一些用于我们的应用程序,一些用于我们的公共网站)

\n

*.dev.mydomain.com(指向我们开发应用程序的云前端的\'A\'记录)效果很好,\n*.app.mydomain.com(指向我们实时应用程序的云前端的\'A\'记录) )效果很好

\n

www.mydomain.com(指向 Bluehost 上托管我们的 Wordpress 网站的 IP 地址的“A”记录)效果很好

\n

我不明白的是如何让 mydomain.com(没有任何子域)指向与 www 相同的 Bluehost WordPress 站点。\n我配置了:

\n

*.mydomain.com(指向同一bluehost IP的\'A\'记录)

\n

但我得到的是:

\n
\n

无法访问此站点\xe2\x80\x99\n找不到
mydomain.com\xe2\x80\x99s 服务器 IP 地址。DNS_PROBE_FINISHED_NXDOMAIN

\n
\n

nameservers amazon-web-services bluehost amazon-route53

6
推荐指数
1
解决办法
7466
查看次数

未捕获的SyntaxError:意外的令牌:在AngularJS中

我已经在这个工作了几个小时,似乎无法到达任何地方.我希望这是发布此内容的正确位置.我是StackOverflow的新手,所以如果这不正确,请引导我到正确的地方.

我有以下html文件:

<!DOCTYPE HTML>
<html ng-app="DishClips">
 <head>
    <script type="text/javascript" src="http://code.angularjs.org/angular-1.0.0.0rc4.min.js"></script>
    <script type="text/javascript" src="http://code.angularjs.org/angular-resource-1.0.0.0rc4.min.js"></script>
    <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.0/css/bootstrap.min.css">
    <script type="text/javascript" src="./dishclips.js"></script>
 </head>

 <body>
 <div ng-controller="DishClipsCtrl">
    <table class="table table-striped">
        <tr ng-repeat="restaurant in dishclipsResult.results"></tr>
            <td>{{restaurant.name}}</td>
    </table>
 </div>
 </body>
</html>
Run Code Online (Sandbox Code Playgroud)

以下是我的dishclips.js:

angular.module('DishClips', ['ngResource']);

function DishClipsCtrl($scope, $resource) {
    $scope.dishclips = $resource('http://apiv2.dishclips.com/dishclips/api/:action',
    {action:'searchRestaurants',address:'irvine',callback:'JSON_CALLBACK' },
    {get:{method:'JSONP'}});

    $scope.dishclipsResult = $scope.dishclips.get(); 
}
Run Code Online (Sandbox Code Playgroud)

当我运行它(在chrome中)时,我得到:

未捕获的SyntaxError:意外的令牌:

json回归看起来很棒所以我不明白为什么这是一个问题.

谢谢

angularjs

5
推荐指数
1
解决办法
3万
查看次数