Questions tagged [mod-dir]

Apache's directory module

Provides for "trailing slash" redirects and serving directory index files

Directives provided

  • DirectoryCheckHandler
  • DirectoryIndex
  • DirectoryIndexRedirect
  • DirectorySlash
  • FallbackResource

Useful links

  1. Apache docs page: https://httpd.apache.org/docs/current/en/mod/mod_dir.html
3 questions
4
votes
0 answers

Site not detecting index

I'm working on Ubuntu 14.04.2 Apache 2.4.7 I have a Virtual host set up to serve files from /var/www/dev and the config file looks like this for dev.conf: ServerAdmin ubuntu@12.234.567.89 DocumentRoot /var/www/dev …
contool
  • 941
  • 2
  • 15
  • 26
3
votes
0 answers

FallbackResource doesn't rewrite php files

I'm just using the following .htaccess config. But when I try to access a non-existent .php file, eg. xyz.php, the server returns a 404 instead of rewriting to index.php. What am I missing? RewriteEngine on FallbackResource /index.php
Arya Same
  • 197
  • 1
  • 2
  • 10
0
votes
0 answers

mod_dir adding index.html before mod_rewrite with proxy in .htaccess (worked in Apache 2.2)

I am working on a site upgrade from apache 2.2 to 2.4. I am having an issue where mod_dir is adding "index.html" to urls before the .htaccess file is processed. This is causing issues for rewrites using the proxy flag to sites that use a different…