Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- root /srv/pufferpanel;
- index index.php;
- server_name myip;
- client_max_body_size 20m;
- client_body_timeout 120s;
- location / {
- try_files /public/router.php =404;
- fastcgi_split_path_info ^(.+?\.php)(/.*)$;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index router.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include /etc/nginx/fastcgi_params;
- }
- location /assets {
- try_files /app/$uri =404;
- }
- }
- #server {
- # listen 443;
- # root /srv/pufferpanel;
- # index index.php;
- #
- # server_name myip;
- #
- # ssl on;
- # ssl_certificate /etc/nginx/ssl/myip.crt;
- # ssl_certificate_key /etc/nginx/ssl/myip.key;
- #
- # location / {
- # try_files /public/router.php =404;
- # fastcgi_split_path_info ^(.+?\.php)(/.*)$;
- # fastcgi_pass 127.0.0.1:9000;
- # fastcgi_index router.php;
- # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- # include /etc/nginx/fastcgi_params;
- # }
- #
- # location /assets {
- # try_files /app/$uri =404;
- # }
- #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement