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:
Worker Skeletton
2026-05-25 13:46:40 +02:00
parent 70d812dab8
commit 059df2b895
4 changed files with 20 additions and 22 deletions

View File

@@ -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']);
}
}

View File

@@ -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>

View File

@@ -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>