Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- listen 80;
- listen 443 ssl http2;
- server_name ismlar.test;
- root "/home/vagrant/Code/ismlar/public";
- index index.html index.htm index.php;
- charset utf-8;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- location /blog {
- alias "/home/vagrant/Code/ismlar_blog/public";
- index index.php;
- try_files $uri $uri/ /blog/index.php?$args;
- #if (!-e $request_filename) { rewrite ^ /blog/index.php last; }
- location ~ \.php$ {
- if (!-f $request_filename) { return 404; }
- #fastcgi_pass 127.0.0.1:9000;
- fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- fastcgi_param SCRIPT_NAME $fastcgi_script_name;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement