mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
34 lines
1,008 B
Text
34 lines
1,008 B
Text
Alias /flexiapi /opt/belledonne-communications/share/flexisip-account-manager/flexiapi/public
|
|
|
|
<Directory /opt/belledonne-communications/share/flexisip-account-manager/flexiapi/public>
|
|
AllowOverride All
|
|
Order allow,deny
|
|
allow from all
|
|
Require all granted
|
|
DirectoryIndex index.php
|
|
|
|
<IfModule mod_rewrite.c>
|
|
<IfModule mod_negotiation.c>
|
|
Options -MultiViews -Indexes
|
|
</IfModule>
|
|
|
|
RewriteEngine On
|
|
|
|
# Handle Authorization Header
|
|
RewriteCond %{HTTP:Authorization} .
|
|
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
|
|
|
# Redirect Trailing Slashes If Not A Folder...
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_URI} (.+)/$
|
|
RewriteRule ^ %1 [L,R=301]
|
|
|
|
# Handle Front Controller...
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^ index.php [L]
|
|
|
|
RewriteBase /flexiapi/
|
|
</IfModule>
|
|
|
|
</Directory>
|