Skip to content

EspoCRM – Open Source CRM Application

Rewrite rule install

Yurii6a592ea866d0
diff --git a/install/core/config.php b/install/core/config.php
index a0a5f47287..150c0833c5 100644
--- a/install/core/config.php
+++ b/install/core/config.php
@@ -58,6 +58,18 @@ sudo service apache2 restart',
}
}
+ location /oauth/ {
+ if (!-e $request_filename){
+ rewrite ^/oauth/(.*)$ /oauth/index.php last; break;
+ }
+ }
+
+ location /.well-known/ {
+ if (!-e $request_filename){
+ rewrite ^/.well-known/(.*)$ /.well-known/index.php last; break;
+ }
+ }
+
location /portal/ {
try_files $uri $uri/ /portal/index.php?$query_string;
}