Hey guys!
I'm new here. Hope you could help me out with a small problem.
I'm trying to migrate a site to nginx, but some parts of it don't work properly due to missing rewrite rules.
On my Apache vhost config, I got this:
<Directory ${DOCUMENT_ROOT}>
AllowOverride All
Require all granted
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule \.php$ - [R=404]
</Directory>
RewriteEngine On
RewriteCond %{HTTP:Authorization} .+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
Could you please give me the nginx equilivant to those rewrite rules? (Including the ones in the <directory> directive of course)