Suche funktionierende NGINX vhost config
Verfasst: 05.04.2016 14:53
Hallo,
ich habe folgendes Problem. Ich benutze phpBB 3.1.8 auf einem NGINX Webserver (php-fpm). Leider gibt es immer wieder kurze Downtimes der Seite (10-20 Sekunden, dann plötzlich wieder da) Anhand der Logs ist leider nicht zu erkennen. Es gibt nur eine Zeile in der error.log, die lautet ( recv() not ready (11: Resource temporarily unavailable) .
Ich befürchte das es irgendwie an einer fehlerhaften virtual host config liegt. Ich poste hier mal meine aktuelle config.
Auch finde ich keine Informationen dazu wie man "pretty URLS" hinbekommt mit NGINX und einer aktuellen phpBB Version. Wieso gibt es hier keine offiziellen Beispiel Konfigurationen zu einem NGINX Webserver? Ich bin schon kurz davor auf vBulletin umzuspringen.
Danke für eure Hilfe
ich habe folgendes Problem. Ich benutze phpBB 3.1.8 auf einem NGINX Webserver (php-fpm). Leider gibt es immer wieder kurze Downtimes der Seite (10-20 Sekunden, dann plötzlich wieder da) Anhand der Logs ist leider nicht zu erkennen. Es gibt nur eine Zeile in der error.log, die lautet ( recv() not ready (11: Resource temporarily unavailable) .
Ich befürchte das es irgendwie an einer fehlerhaften virtual host config liegt. Ich poste hier mal meine aktuelle config.
Code: Alles auswählen
server {
listen 80;
server_name www.f***.com f***.com;
charset UTF-8;
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/xml text/css application/x-javascript;
error_log /srv/www/f***.com/logs/error.log debug;
root /srv/www/f***.com/public_htm;
location / {
# phpbb uses index.htm
index index.php index.html index.htm;
try_files $uri $uri/ /app.php?$query_string;
}
location /adm/ {
auth_basic "Restricted Area";
auth_basic_user_file /srv/www/f***.com/private/htpasswd.txt;
}
# Deny access to internal phpbb files.
location ~ /(config\.php|common\.php|includes|cache|files|store|images/avatars/upload) {
deny all;
internal;
}
# Deny access to version control system directories.
location ~ /\.svn|/\.git {
deny all;
internal;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_read_timeout 300;
include fastcgi_params;
}
}
Danke für eure Hilfe