Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
- root /var/www/html;
- index index.php index.html index.htm index.nginx-debian.html;
- server_name _;
- location / {
- try_files $uri $uri/ =404;
- }
- location ~ .php$ {
- fastcgi_split_path_info ^(.+.php)(/.+)$;
- fastcgi_pass unix:/run/php/php7.2-fpm.sock;
- fastcgi_index index.php;
- include fastcgi.conf;
- }
- }
- server {
- listen 80;
- server_name _;
- index index.php;
- error_log /var/www/html/test_slim/error.log;
- access_log /var/www/html/test_slim/access.log;
- root /var/www/html/test_slim/src/public;
- location /test_slim/ {
- try_files $uri /index.php$is_args$args;
- }
- location ~ .php {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+.php)(/.+)$;
- include fastcgi.conf;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param SCRIPT_NAME $fastcgi_script_name;
- fastcgi_index index.php;
- fastcgi_pass unix:/run/php/php7.2-fpm.sock;
- }
- }
Add Comment
Please, Sign In to add comment