- json_encode: documentation ( source)
<?php
$a = <<< TEXT
server {
server_name jyprince.me
root /home/jybox/blog;
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~* ^.+\.(|jpg|jpeg|gif|png|ico|zip)$ {
access_log off; log_not_found off; expires max;
}
}
TEXT;
echo json_encode(["nginxextconfig" => $a]);