Questions tagged [directoryindex]
70 questions
14
votes
2 answers
VirtualHost with wildcard VirtualDocumentRoot
I'm trying to create a fallback for my virtual hosts. My configuration looks like this:
# Fetch all pre-defined hosts
Include "conf/extra/vhosts/*.conf"
# Fallback
NameVirtualHost *:80
Options Indexes…
![](../../users/profiles/1626250.webp)
Mike Rockétt
- 8,617
- 4
- 40
- 81
11
votes
3 answers
Change the DirectoryIndex based on a domain/sub-domain in .htaccess
I have a shared hosting with one domain and one sub-domain (for mobile and clients). Each domain and sub-domains has different default index pages. The hosting company told me to put everything in my .htaccess file since I don't have access to the…
![](../../users/profiles/923348.webp)
Tech4Wilco
- 6,620
- 3
- 43
- 80
7
votes
1 answer
Apache lists directory files instead of index.php
My Apache web server suddenly stopped serving index.php files automatically. It shows direcotry listing instead. I've tried helps but no luck.
My htttpd.conf file includes
AddType application/x-httpd-php…
![](../../users/profiles/1839214.webp)
mavili
- 3,185
- 4
- 27
- 43
4
votes
2 answers
How can I get Apache's DirectoryIndex in PHP?
Is there a way to get an array (or something similar) of the DirectoryIndex in PHP being run under Apache? For example, I would like to be able check if one of the DirectoryIndex files exist in a specific directory. This is related to How can I get…
![](../../users/profiles/652722.webp)
Tyler Crompton
- 11,740
- 12
- 59
- 91
4
votes
2 answers
Disable index files with SimpleHTTPServer
By default, SimpleHTTPServer uses index.html as a index file, I would like to disable them and always show a directory index.
How can I do that? The document here says nothing about it
![](../../users/profiles/614944.webp)
daisy
- 19,459
- 24
- 111
- 218
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
…
![](../../users/profiles/1563696.webp)
contool
- 941
- 2
- 15
- 26
3
votes
1 answer
Conditional DirectoryIndex
I have installed two CMSs in the same directory. One of the CMSs allows the index.php file to be renamed to index2.php, the other one does not. Ideally I'd like to set up a conditional rule in the .htaccess file which:
Uses index.php as the default…
![](../../users/profiles/852563.webp)
Sam
- 53
- 4
3
votes
2 answers
Conditional Directory Index In Htaccess
This relates to the question in:
conditional DirectoryIndex in .htaccess
The answer states that the following should work:
SetEnvIf Remote_Addr ^127\.0\.0\.0$ owner
DirectoryIndex index.html
…
![](../../users/profiles/123140.webp)
Lizard
- 39,504
- 36
- 102
- 164
3
votes
1 answer
Default Apache index page parameters
I was very surprised that I couldn't find this answer on Google.
I have seen someone access the default Apache index page (no index.html present, so it just shows the directory listing) with query string parameters. The URL they used was similar…
![](../../users/profiles/259457.webp)
Travesty3
- 14,336
- 6
- 52
- 95
2
votes
1 answer
DirectoryIndex seemingly ignored by apache2
I'm installing Wordpress and getting the problem where it doesn't find index.php. Of course, if I type it explicitly then it's fine. The problem is somehow that DirectoryIndex is not right. I look in mods-enabled/dir.conf and it says:
![](../../users/profiles/737181.webp)
zsimpson
- 695
- 2
- 7
- 12
2
votes
1 answer
Laravel Apache DirectoryIndex now needs index.php
We have an app that we upgraded from 5.x to 7.x. After a fair amount of edits (really not bad) we have the 7.x version running.
But to get the app's root URL to work we had to add index.php to the DirectoryIndex setting. Without this we got…
![](../../users/profiles/4104386.webp)
user44021
- 31
- 5
2
votes
2 answers
How to find out the name of the default page displayed by a webserver?
I'm downloading various files through I/O-streaming in my Java application. Receiving and saving those files works well as long as I have a full URL-path including file name, but how can I find out the name of the index file (as defined in, for…
![](../../users/profiles/419501.webp)
Dennis Winter
- 2,025
- 4
- 32
- 44
2
votes
0 answers
How to configure spring boot to enable default directory index page?
As we know, nginx or apache hosting servers, when visitors go to a URL that requests a directory, such as http://example.com/products, the web server looks for a file in the products directory named index.html. If index.html exists, its contents…
![](../../users/profiles/4048999.webp)
sincosmos
- 176
- 1
- 3
- 13
2
votes
1 answer
Unable to set default index page in apache2 [Debian 7.1]
Hi i am working on a project where i have two index files on root, one is index.php and other is index.html. I want o set default page to index.php and if it is not available then it should work for index.html.
I have searched alot on internet and…
![](../../users/profiles/3164751.webp)
Amrinder Singh
- 4,699
- 9
- 38
- 74
2
votes
2 answers
htaccess directoryindex redirect looking for css wrong place
Hello in my htaccesss file i put this code to ensure that my directory index file is set to
v2013/index.html
so i put this code
DirectoryIndex v2013/index.html
Then i Want it to look like mydomain.com/Welcome, so i add..
RewriteEngine…
![](../../users/profiles/902770.webp)
Monclee
- 146
- 11