Skip to content

Commit

Permalink
fix the rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
ylebre committed Dec 23, 2020
1 parent fcab9c6 commit 00d831a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN openssl req -new -x509 -days 365 -nodes \
RUN docker-php-ext-install mysqli pdo pdo_mysql zip mbstring
RUN a2enmod rewrite
RUN a2enmod ssl
RUN a2enmod headers
WORKDIR /install
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php
Expand Down
5 changes: 5 additions & 0 deletions web/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
</IfModule>
2 changes: 2 additions & 0 deletions web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@
/*/ Create URI groups /*/
$router->map('GET', '/.well-known/openid-configuration', OpenidController::class)->setScheme($scheme);
$router->map('GET', '/jwks', JwksController::class)->setScheme($scheme);
$router->map('GET', '/login', AddSlashToPathController::class)->setScheme($scheme);
$router->map('GET', '/login/', LoginPageController::class)->setScheme($scheme);
$router->map('POST', '/login', LoginController::class)->setScheme($scheme);
$router->map('POST', '/login/', LoginController::class)->setScheme($scheme);
$router->map('OPTIONS', '/{path}', CorsController::class)->setScheme($scheme);
$router->map('POST', '/register', RegisterController::class)->setScheme($scheme);
Expand Down

0 comments on commit 00d831a

Please sign in to comment.