FAQ |
Kalender |
![]() |
#1 | |||
|
||||
Flitig postare
|
Försöker använda PHP-FPM som fallback för HHVM men får inte till det.
ps-watcher startar HHVM automatiskt var 5:minut om det går ner, men vill gärna ha hemsidan online under tiden. Så här ser min hhvm.conf ut: location ~ \.(hh|php)$ { proxy_intercept_errors on; error_page 502 = @fallback; try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_keep_conn on; include fastcgi_params; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SERVER_NAME $host; fastcgi_pass 127.0.0.1:9000; } location @fallback { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SERVER_NAME $host; fastcgi_pass unix:/var/run/php5-fpm.sock; } /Vad gör jag för fel? |
|||
![]() |
![]() |
|
|