Hey there,
ich hab n kleines Problem mit meiner nginx config file..
Wie zur hölle kriege ich das in Verbindung mit Woltlab zum Laufen xD
Bash: /etc/nginx/sites-enabled/reol.dev.conf
server {
root /www/reol.dev;
index index.html index.htm index.php;
server_name reol.dev;
location / {
index index.php;
rewrite ^/(forum/|cms/|wcf/|calendar/|filebase/|blog/|gallery/)?([^.]+)$ /$1index.php?$2 last;
}
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/reol.dev-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/reol.dev-0001/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = reol.dev) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
listen [::]:80;
server_name reol.dev;
return 404; # managed by Certbot
}
Alles anzeigen