Rename www subdirectories to full domain names
- www/www -> www/www.domain.de - www/api -> www/api.domain.de - www/game -> www/game.domain.de Each domain now has its own directory with public/ Document Root.
This commit is contained in:
@@ -3,9 +3,7 @@
|
||||
* api.domain.de — REST API
|
||||
*/
|
||||
header('Content-Type: application/json');
|
||||
|
||||
$method = $_SERVER['REQUEST_METHOD'];
|
||||
|
||||
switch ($method) {
|
||||
case 'GET':
|
||||
echo json_encode(['status' => 'ok', 'message' => 'API läuft']);
|
||||
@@ -17,4 +15,4 @@ switch ($method) {
|
||||
default:
|
||||
http_response_code(405);
|
||||
echo json_encode(['error' => 'Method not allowed']);
|
||||
}
|
||||
}
|
||||
@@ -8,10 +8,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Game</title>
|
||||
<title>game.domain.de</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Game</h1>
|
||||
<p>Spielkomponente.</p>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
@@ -8,10 +8,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Projekt</title>
|
||||
<title>www.domain.de</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Willkommen</h1>
|
||||
<p>Dies ist die Hauptseite.</p>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
Reference in New Issue
Block a user