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

@@ -21,14 +21,14 @@ skeleton/
├── docs/ # Projektdokumentation
│ ├── doku/
│ └── planung/
├── www/ # Subdomains
│ ├── api/ # api.domain.de
├── www/ # Subdomains (ein Verzeichnis pro Domain)
│ ├── www.domain.de/ # www.domain.de
│ │ └── public/ # Document Root
│ │ └── index.php
│ ├── game/ # game.domain.de
│ ├── api.domain.de/ # api.domain.de
│ │ └── public/ # Document Root
│ │ └── index.php
│ └── www/ # www.domain.de
│ └── game.domain.de/ # game.domain.de
│ └── public/ # Document Root
│ └── index.php
└── README.md
@@ -43,10 +43,10 @@ skeleton/
git clone https://git.shadow-land.de/madgerm/skeleton.git mein-projekt
cd mein-projekt
# 2. Subdomain-Verzeichnisse umbenennen
mv www/api www/meine-api-subdomain
mv www/game www/mein-game-subdomain
mv www/www www/meine-www-subdomain
# 2. Domain-Verzeichnisse umbenennen (falls andere Domains gewünscht)
mv www/www.domain.de www/meine-domain.de
mv www/api.domain.de www/meine-api.domain.de
mv www/game.domain.de www/mein-game.domain.de
# 3. README und Repo-Name anpassen
# 4. Git init / remote setzen
@@ -62,8 +62,8 @@ Jedes `www/<subdomain>/public/` Verzeichnis ist der Document-Root für die jewei
**Caddy Config Beispiel:**
```
subdomain.domain.de {
root * /srv/www/projekt/www/subdomain/public
www.meine-domain.de {
root * /srv/www/projekt/www/www.meine-domain.de/public
php_fastcgi localhost:9000
file_server
}
@@ -71,11 +71,11 @@ subdomain.domain.de {
## Subdomains
| Verzeichnis | Subdomain | Beschreibung |
|-------------|-----------|---------------|
| `www/www/` | www.domain.de | Hauptseite |
| `www/api/` | api.domain.de | REST API |
| `www/game/` | game.domain.de | Spielkomponente |
| Verzeichnis | Domain | Beschreibung |
|-------------|--------|---------------|
| `www/www.domain.de/` | www.domain.de | Hauptseite |
| `www/api.domain.de/` | api.domain.de | REST API |
| `www/game.domain.de/` | game.domain.de | Spielkomponente |
## Docs

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

View File

@@ -8,7 +8,7 @@
<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>

View File

@@ -8,7 +8,7 @@
<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>