diff --git a/nginxconf/flashy.cards b/nginxconf/flashy.cards index b53769f..7e997df 100644 --- a/nginxconf/flashy.cards +++ b/nginxconf/flashy.cards @@ -7,6 +7,14 @@ server { server_name flashy.cards; listen 443 ssl; + location ~ \.php$ { + try_files $uri =404; + fastcgi_pass unix:/var/run/php5-fpm.sock; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } + location / { root /srv/flashy.cards/; }