phpist

Untitled

Dec 31st, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. charset utf-8;
  5. server_name php.x;
  6. set $yii_bootstrap "index.php";
  7.  
  8. access_log /var/log/nginx/php.x-access.log;
  9. error_log /var/log/nginx/php.x-error.log;
  10. root /var/www/php.x;
  11. index $yii_bootstrap;
  12.  
  13. set $htdocs /var/www/php.x;
  14.  
  15. location / {
  16.  
  17. # Redirect everything that isn't real file to yii bootstrap file including arguments.
  18. try_files $uri $uri/ /$yii_bootstrap?$args;
  19. }
  20.  
  21. include /etc/nginx/_location_php;
Advertisement
Add Comment
Please, Sign In to add comment