| @@ -1,13 +1,13 @@ | |||
| server { | |||
| listen 80; | |||
| index index.php index.html; | |||
| index index.php index.phtml index.html; | |||
| server_name localhost; | |||
| error_log /var/log/nginx/error.log; | |||
| access_log /var/log/nginx/access.log; | |||
| root /var/www/html/public; | |||
| location ~ \.php$ { | |||
| location ~ \.(php|phtml)$ { | |||
| try_files $uri =404; | |||
| fastcgi_split_path_info ^(.+\.php)(/.+)$; | |||
| fastcgi_pass php:9000; | |||
| @@ -96,3 +96,4 @@ $random_record = random_record(); | |||
| ?> | |||
| </body> | |||
| </html> | |||