File: homer-api.conf

package info (click to toggle)
homer-api 5.0.6+dfsg2-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,604 kB
  • ctags: 2,439
  • sloc: php: 8,259; sql: 1,212; perl: 984; sh: 318; makefile: 69
file content (20 lines) | stat: -rw-r--r-- 481 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Alias /homer /usr/share/homer/web
# Add trailing slash (because DirectorySlash is off)
RedirectMatch ^/homer$ /homer/

<Directory "/usr/share/homer/web">
  DirectoryIndex index.php index.html index.htm
  Options Indexes FollowSymLinks MultiViews
  AllowOverride All
  Require all granted

  RewriteEngine on
  RewriteBase /homer/api
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php [L]

  DirectorySlash Off

</Directory>