Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- server_name (isi ip / domain);
- root /var/www/mobil_laravel/public;
- # Add index.php to the list if you are using PHP
- index index.php;
- access_log /var/www/nginx-acc.log;
- error_log /var/www/nginx-err.log;
- location / {
- error_page 550 = @protected;
- recursive_error_pages on;
- try_files $uri $uri/ /index.php@is_args@args;
- }
- location ~ \.php$ {
- fastcgi_index index.php;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- fastcgi_keep_conn on;
- include /etc/nginx/fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- try_files $uri =404;
- }
- location ~/\. {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement