Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- root /var/www/yourproject/public; # директория проекта, не забудь указать на public
- index index.php index.html index.htm;
- server_name yourproject.local; # домен проекта, по которому сможешь заходить на серв
- client_max_body_size 32m;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- error_page 404 /404.html;
- error_page 500 502 503 504 /50x.html;
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass 127.0.0.1:9000;
- #fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_index index.php;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement