Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- site
- -index.php
- -uploads/image.jpg....
- -css/
- -js/
- server {
- listen site.com;
- server_name site.com;
- root /home/vijo/Music/PHP/site;
- index index.php index.html index.htm;
- keepalive_timeout 70;
- access_log /home/vijo/Music/PHP/site/log/access.log;
- error_log /home/vijo/Music/PHP/site/log/error.log;
- # Make site accessible from http://localhost/
- location / {
- try_files $uri $uri/ @rewrite;
- expires max;
- }
- location @rewrite {
- rewrite ^ /index.php;
- }
- location ~ .php$ {
- fastcgi_split_path_info ^(.+.php)(/.+)$;
- fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- location ~ /.ht {
- deny all;
- }
Add Comment
Please, Sign In to add comment