nginx: Rewrite PHP does not work
- by Ton Hoekstra
I've a Suffix Proxy installed and I'm using the following rewrite with wildcard subdomain DNS on:
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php last;
break;
}
}
My suffix proxy has the following URL format:
(subdomain and/or domain + domain extension to proxy).proxy.org/(request-uri to proxy)
I've…