我希望有人可以帮我一些Apache虚拟主机配置。我可以到达Apache'It Works!'特定WAN IP的页面。
我已经通过/etc/apache2/sites-available/stuart.com.conf为stuart.com设置了一个虚拟主机。我已经编辑了我的本地主机文件,这样当我去stuart.com时,我成功访问了/var/www/stuart.com/public_html中的文件。但是我希望其他人能够通过WANIP / stuart.com访问这些文件,但是目前当我这样做时,我得到了404。
我的stuart.com.conf文件如下所示。任何人都可以建议我如何编辑它(或其他Apache配置),以便能够通过WANIP / stuart.com访问文件?我已经查看了一些与基于名称的虚拟主机相关的SO问题,但没有找到任何帮助我解决此问题的问题
<html ng-app="ionicApp">
<head ng-app="ionicApp">
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Radio Buttons</title>
<link href="//code.ionicframework.com/1.0.0-beta.12/css/ionic.css" rel="stylesheet">
<style>
.speakerListItems
{
border-bottom:1px solid white;
}
</style>
<script src="//code.ionicframework.com/nightly/js/ionic.bundle.min.js"></script>
</head>
<body ng-controller="MainCtrl">
<ion-header-bar class="bar-positive">
<h1 class="title">Divs inside Div</h1>
</ion-header-bar>
<ion-content scroll="false">
<ion-scroll class="list" direction="y" style="height:100%">
<li class="item" ng-repeat="item in agendaDetails">
<div class="row speakerListItems" ng-repeat="speakering in item.speakers track by $index">
<div class="col-50">
<p ng-style="{'background-color':getNumber()}">{{speakering.speaker}}</p>
</div>
<div class="col-50">
<p style="float:right">Hello</p>
</div>
</div>
</li>
</ion-scroll>
</ion-content>
<script>
angular.module('ionicApp', ['ionic'])
.controller('MainCtrl', function ($scope) {
var agendaDetails = [
{
"startTime": "10:00",
"endTime": "12:00",
"topic": "INVESTOR RELATIONS & FINANCE OVERVIEW",
"speakers": [
{
"speaker": "Speaker1"
}
]
},
{
"startTime": "12:00",
"endTime": "2:00",
"topic": "ACQUISTION PROCESS",
"speakers": [
{
"speaker": "Speaker2"
},
{
"speaker": "Speaker3"
}
]
},
{
"startTime": "2:00",
"endTime": "4:00",
"topic": "DIVERSITY OVERVIEW",
"speakers": [
{
"speaker": "Speaker4"
},
{
"speaker": "Speaker5"
},
{
"speaker": "Speaker6"
},
]
},
{
"startTime": "10:00",
"endTime": "12:00",
"topic": "INVESTOR RELATIONS & FINANCE OVERVIEW",
"speakers": [
{
"speaker": "Speaker7"
},
{
"speaker": "Speaker8"
},
{
"speaker": "Speaker9"
},
{
"speaker": "Speaker10"
},
]
}
];
$scope.agendaDetails = agendaDetails;
var colorDetails = {
"1": "red",
"2": "blue",
"3": "black",
"4": "white",
"5": "green"
}
$scope.colorDetails = colorDetails;
$scope.getNumber = function (){
var minNumber = 1;
var maxNumber = 4;
var randomnumber = Math.floor(Math.random() * (maxNumber + 1) + minNumber);
return($scope.colorDetails[randomnumber]);
};
});
</script>
非常感谢任何帮助!