From 5d5cdbbd858e6d2881e3a0b2b652de10ce5f2a09 Mon Sep 17 00:00:00 2001 From: Tomasz Wolniewicz <twoln@umk.pl> Date: Tue, 26 Oct 2021 08:29:38 +0200 Subject: [PATCH] adding the httpd.conf template --- lib/technical-httpd.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/technical-httpd.conf diff --git a/lib/technical-httpd.conf b/lib/technical-httpd.conf new file mode 100644 index 0000000..c1f6ad0 --- /dev/null +++ b/lib/technical-httpd.conf @@ -0,0 +1,14 @@ + <Directory path_to_the_root_directory/web> + Options Indexes MultiViews FollowSymLinks + RewriteEngine on + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^(.*)/$ /$1 [L,R] + RewriteRule "json_api\.php" "/master.php?page=api" [QSA,END] + RewriteRule "^([a-z][a-z_]*)\.php$" "/master.php?page=$1" [QSA,NS,END] + RewriteRule "^([a-z][a-z_]*)$" "/master.php?page=$1" [QSA,NS,END] + RewriteRule "^$" "/master.php?page=index" [QSA,NS,END] + Order deny,allow + Allow from all + Require all granted + </Directory> + -- GitLab