Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- charset utf-8;
- server_name php.x;
- set $yii_bootstrap "index.php";
- access_log /var/log/nginx/php.x-access.log;
- error_log /var/log/nginx/php.x-error.log;
- root /var/www/php.x;
- index $yii_bootstrap;
- set $htdocs /var/www/php.x;
- location / {
- # Redirect everything that isn't real file to yii bootstrap file including arguments.
- try_files $uri $uri/ /$yii_bootstrap?$args;
- }
- include /etc/nginx/_location_php;
Advertisement
Add Comment
Please, Sign In to add comment