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:
30
README.md
30
README.md
@@ -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
|
||||
|
||||
|
||||
@@ -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']);
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user