Files

47 lines
714 B
Markdown
Raw Permalink Normal View History

# 09_nginx_apache.md
# Nginx / Apache
Coolify Proxy ersetzt TLS/Domain, aber nicht zwingend App-Gateway-Funktion.
## Nginx sinnvoll
```text
Static Files
SPA fallback
/api → backend
Upload Limits
WebSocket Header
PHP-FPM Frontend
Caching
```
## Apache sinnvoll
```text
PHP Legacy
.htaccess
mod_rewrite
klassische LAMP Apps
```
## Nicht nötig
```text
Node/Go/Python-App spricht selbst HTTP
kein Path Routing
keine Static/Gateway-Sonderlogik
```
## PHP-FPM Pattern
```text
nginx/apache = public
php-fpm/db/redis = internal
storage/uploads = persistent
```
TLS normalerweise bei Coolify, intern HTTP.
Stop: Gateway nicht entfernen, wenn Auth/API/Storage/Realtime/PHP-FPM/Rewrite-Funktion vorhanden ist.