Skip to main content

Questions tagged [directoryindex]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
12 votes
5 answers
19k views

Disable directory listings with 404 instead of 403

I've disabled directory listings like so... Options -Indexes When I try and access a directory like this:- www.example.com/secret/ I get a 403 Forbidden response. However, I want a 404 Not Found ...
Rik Heywood's user avatar
8 votes
1 answer
12k views

ext3_dx_add_entry: Directory index full

Background: I'm running lighttpd 1.4.28-1 on CentOS 5.3 to serve the static assets. Signal: recently, it gets slow sometimes. I'm getting the below errors in the kernel log and /var/log/messages: ...
quanta's user avatar
  • 52k
6 votes
1 answer
49k views

How do I make virtual host DirectoryIndex file appear in the url?

I have setup a virtual host which specifies a default file to load when the URL is called. The problem I have is that I need that default DirectoryIndex file to appear in the URL. So when I go to: ...
Bob Flemming's user avatar
  • 1,315
4 votes
2 answers
4k views

Force nginx to always autoindex and ignore index.html files?

I am trying to get nginx to ignore index.html files and always show a directory listing from the autoindex module. If I remove my index line, nginx still defaults to serving index.html files, so that ...
Maximillian Laumeister's user avatar
4 votes
1 answer
2k views

Set date format in nginx autoindex HTML listing

The default date format in nginx autoindex HTML directory listings is 19-Jun-2019. Can I change it to ISO YYYY-MM-DD format instead?
Lassi's user avatar
  • 515
4 votes
2 answers
7k views

DirectoryIndex not working properly for rewritten URL

I have domain.com and sub.domain.com pointing to the same server and I'm using mod_rewrite to rewrite URLs for sub.domain.com to the sub subdirectory. I have the following .htaccess file in the ...
mxxk's user avatar
  • 163
3 votes
3 answers
5k views

Apache will not display index in web root, subfolders are fine

I have an Apache 2.2.3 server running on CentOS 5.5. In the root of my web directory, there is an index.html file. Going to something like, say, www.exampledomain.egg/index.html works, but going to ...
zach.hinchy's user avatar
2 votes
1 answer
3k views

using nginx try_files and autoindex together

I have the following server configuration: server { listen 80; server_name _; root /var/www/; location /calendars/ { autoindex on; try_files $uri.ics $uri =404; }...
Tyilo's user avatar
  • 125
2 votes
2 answers
5k views

Apache2: Allow directory indexing, but restrict file access by type

I need to configure my Apache2 server (version 2.2.22) such that I allow auto-indexing of the WWW root folder and its sub-directories, but restrict access (i.e. restrict download) to just a set of ...
Keith Morgan's user avatar
2 votes
1 answer
4k views

nginx - How to... DirectoryIndex to a folder

I want to set a initial page inside a folder, besides the common index.htm I want to change index.htm to /folder/file.htm Is it possible using nginx? In my Apache server all I have to do is config ...
Gus's user avatar
  • 21
2 votes
1 answer
3k views

Apache2 on Ubuntu 12.04 -- DirectoryIndex ignored

I have a relatively fresh installation of LAMP on Ubuntu 12.04 (installed using tasksel). I've got a virtual host pointed at a development project in my home directory containing plain Hello World ...
James's user avatar
  • 21
2 votes
1 answer
638 views

When changed to WWW, all URLs showing index.php?page= how to remove index.php?page=?

I recently managed to direct all URLs from non-www to www as I had an SEO error regarding duplicate websites. Once I have applied www rules then all my URLs start showing index.php?page= which doesn't ...
Siham Lahmine's user avatar
1 vote
1 answer
1k views

With Apache, is it possible to generate a directory listing for a non-folder URL?

Apache allows you to create a directory list (when configured) if you visit a folder with no index.html. What I want to know is, is it possible to get that same list but at a different URL? I'm ...
William Denniss's user avatar
1 vote
1 answer
2k views

HOWTO: Apache index page banner?

I'd like Apache index pages to show my company banner w/ link to homepage on top. Instead of: Index of /pub/something to show [Company Banner] Index of /pub/something I added these lines to ....
dzhi's user avatar
  • 830
1 vote
1 answer
5k views

How can I password protect a directory with nginx, but not the files within the directory?

I know this can be done with Apache, however I've started using nginx and would like to know if this is possible, and if so, how I can implement it. On my web server I have the directory /mcscreens ...
Torvero's user avatar
  • 414
1 vote
1 answer
2k views

cPanel & DirectoryIndex - server default page showing for domain root [closed]

I'm pretty sure that I have a very trivial problem and that lots of you guys have answered this kind of question a thousand times. But I just can't find any of these answers. So here we go. I am ...
Tomm's user avatar
  • 13
1 vote
1 answer
920 views

How can I see my DirectoryIndex order on a shared web server?

How can I view the default DirectoryIndex order? Is there a command I can run? I'm on a shared web server so I can't view the configuration file. Is the default documented anywhere? My Google-fu is ...
Drazisil's user avatar
  • 270
1 vote
1 answer
2k views

Configure .htaccess to block bot indexing but allow browser directory listing/viewing

I know in order to show a directory listing of my files in a browser through .htaccess I can use Options +Indexes and to prevent Google and most bots from crawling my directory I can use Options -...
RCNeil's user avatar
  • 615
1 vote
1 answer
539 views

how to change the index of directory page in apache?

How can I change the page that Apache shows when someone navigates to a directory that does not have the index page? I would like to change that page to not be so easy to view all files in a directory....
Gonzo's user avatar
  • 111
1 vote
1 answer
633 views

Apache2 unexpected redirect: Virtualhost DirectoryIndex not serving index.php automatically

I have two Apache virtual hosts set up on an Ubuntu 16.04 VPS. site1.example.com is a properly functioning WordPress site. site2.example.com is a newly added site with only index.php in its document ...
Approval Junkie's user avatar
1 vote
1 answer
1k views

What file should be the DirectoryIndex in Apache to properly serve Munin graphs?

This is probably going to be one of those of course! answers, but I've spent all night looking up tutorials and FAQs on Munin and can't seem to find the answer. I have Munin installed, and I'm trying ...
Hartley Brody's user avatar
1 vote
1 answer
497 views

Apache htaccess ruleset: Try request as: 1) file as-is 2) file + .html suffix 3) DirectoryIndex 4) Else to index.php CMS router

I'd like to express this ruleset If the request is /hello then try the following in the given order: /hello — File of that name exists (file without file extension). Edit: Not a necessity. Only a ...
porg's user avatar
  • 163
1 vote
1 answer
478 views

Why is my root URL serving up a 404 under Apache?

My virtual host file is below. There is a directory /home/jonathan/cats/, and it contains an index.html. And it is world-readable, with the directory being world-executable. (Other VirtualHosts exist ...
Christos Hayward's user avatar
1 vote
1 answer
2k views

Change default ReadmeName in Apache

How do I change the default ReadmeName for Apache directory indexes? I have a readme file in the root of my site example.com/README.html which I want to display as the readme file for Apache ...
user avatar
1 vote
1 answer
431 views

Trouble with Passenger/Apache2 - Error 403

I need to upgrade my Redmine installation. I'm on a Mac OS X Server 10.6.8 (unfortunately, this is a given - can't update the system to a new version right now). In the process, I had issues with ...
Sebastian Sulger's user avatar
1 vote
1 answer
892 views

Apache2 ProxyPass to Tomcat, DirectoryIndex with exclusions

We're deploying a SpringMVC application and using an Apache frontend to make it easier to for our less technically inclined employees to upload images in to the application without having to redeploy ...
Ryan Rix's user avatar
0 votes
1 answer
2k views

NGINX: configure locations many root or index

I want to configure a location for the phpinfo.php file with /phpinfo and another one for phpPgAdmin with /phppgadmin. My server root directory is at /usr/share/nginx/html/, in there I got an index....
Pedro Muñoz Zubía's user avatar
0 votes
1 answer
3k views

CentOS 6.2 disable httpd autoindex

I am trying to disable the Auto index of directories in the apache config. <VirtualHost *:80> ServerName example.com ServerAlias www.example.com example.co.uk www.example.co.uk ...
Alex's user avatar
  • 209
0 votes
3 answers
130 views

Apache: list of resources to look for when client requests a file

Apache's DirectoryIndex directive tells Apache to look for, e.g. index.html and index.php if the client requests a directory. Is there some easy way to get Apache to analogously look for e.g. /$...
ithinkihaveacat's user avatar
0 votes
2 answers
15k views

nginx autoindex doesn't work

I'm trying to share some of my personal media on my website, but I get a 403 Forbidden error when I try to head to it (www.example.com/media). However, when I provide the full path to a file e.g www....
Sven's user avatar
  • 185
0 votes
1 answer
261 views

Apache directory listing

Hi i previously had setup a web server using apache 2.0.65, but i decided to update to 2.2. After updating i noticed that the look of the directory listing changed. It previously looked like this, but ...
user2917413's user avatar
0 votes
2 answers
6k views

Changing default Apache page for a virtual host to a mod_autoindex generated listing

I have the following virtual host in my Apache configuration: <VirtualHost *:80> ServerName foobarspaz DocumentRoot "/path/to/document/root" </VirtualHost> There is no index.html ...
Simon Lieschke's user avatar
0 votes
1 answer
951 views

Get nginx to always load /webdir/page.php on directories if no index.html page

So i'v been trying out some of the config options in http://wiki.nginx.org/NginxHttpCoreModule with no luck so far. What I want is, if someone goes to '10.10.10.1/test/' that it loads the file '/...
Mint's user avatar
  • 516
0 votes
1 answer
4k views

Load index.html by default in apache2

I have set up apache2 web server and tomcat with mod_jk module in between to delegate static content to apache2. I have created /var/www/example/index.html and want this to be loaded when entering ...
user2908112's user avatar
0 votes
1 answer
179 views

How to limit nginx autoindexing?

Is there any way to limit autoindexing to specific types? What I want is to list only .svg files in a specific directory on my nginx server and hide other file types.
Kęstutis's user avatar
  • 553
0 votes
3 answers
15k views

DirectoryIndex works in htaccess but not in apache2 .conf files

I need my Ubuntu install to use index.php as the default file. Added DirectoryIndex index.php to /etc/apache2/apache2.conf Added <Directory /path/to/website/root/> DirectoryIndex ...
csi's user avatar
  • 1,605
0 votes
1 answer
6k views

Internal server error, what is blocking an htaccess file allowing to index dirs

First time writing an .htaccess, so... I try to allow indexing of a dir and later one adding a password for the specific dir. I herefor am writing an .htaccess file. The server I'm working on denies ...
dakke's user avatar
  • 1
0 votes
0 answers
69 views

How to prevent Apache mod_authnz_ldap to authenticate on non-existent DirectoryIndex entries?

I have been investigating why mod_authnz_ldap/mod_auth_basic are emitting failed authentication messages even when user and password are correct. I realized that when the URL ends without the file ...
Tio Urso's user avatar
0 votes
2 answers
2k views

Serve nginx's autoindex under different path

I've run into the issue that I would like to enable nginx's autoindex for some directories but those also having their own index files. So I was wondering if there was a way to make nginx serve it's ...
BrainStone's user avatar
0 votes
1 answer
696 views

How can set DirectoryIndex only for one directory in apache?

I tried this: <Directory path> DirectoryIndex a/b </Directory> But in this way, the DirectoryIndex rule will be aplied all of the subdirectories of path. I want it to work only in the ...
user avatar
0 votes
1 answer
410 views

Limit directory index to authenticated users

Essentially what I am trying to do is to limit directory indexing to authenticated users from a htpasswd file on my Apache server. Here is what I have so far. AuthUserFile C:\XXXXXXXXX\htpasswd ...
Emanuel Elliott's user avatar
0 votes
1 answer
379 views

Password protect all directories and sub directories, but not files

As the titles suggests, I am trying to password protect all directories and sub-directories, but not the files. This is so that I can still browse through the files, and share the download links ...
Qwerty-Space's user avatar
0 votes
1 answer
395 views

Apache 2.4 loads index.html.bak/.old/... before index.php - wildcard?

After upgrading our Apache to 2.4 something seems to have changed with Apaches behavior but I can't find out what. Our DirectoryIndex directive: DirectoryIndex index.html index.cgi index.pl index....
randomcontrol's user avatar
0 votes
0 answers
1k views

Apache Directory index doesn't work but index.html yes

2 hours, 2 hours struggling with that. www.domain.com/index.html works, but www.domain.com show indexes, if i click on the index.html, nothing happens. This is the virtuahost. NameVirtualHost *:80 &...
PsySkeletor's user avatar
0 votes
1 answer
4k views

Nginx proxy pass php index problems

I am having slight issues making my indexes work with nginx serving static content and passing php to apache on a different server. Basically if I need it to try index.php on the backend apache ...
Chris B's user avatar
  • 23
0 votes
1 answer
2k views

Deny access to root directory while allowing access to the DirectoryIndex for default page

I am trying to deny access to the root directory while allowing access to certain files (ending in .html and .js) and specifying a DirectoryIndex so requests for the directory will respond with a ...
MSlimmer's user avatar
0 votes
1 answer
2k views

apache2: Options +Indexes ignored

since the configuration of apache 2 has been split into several files instead of http.conf, I can't get directory listing working. I already found such a question, but it didn't fit to my problem: ...
Bevor's user avatar
  • 113
-1 votes
1 answer
563 views

Apache 2.2 on linux too slow when showing 2,50,000 files from one directory

Using the web browser, I have a requirement to access a directory on a Linux server hosting around 2,00,000 files in it. I am using the 'Alias' directive in apache to achieve this requirement. ...
mwgeek's user avatar
  • 1
-1 votes
2 answers
102 views

Website link with out "/" [duplicate]

My Apache 2.2 is running on port "8080" I want to call my site url http://www.example.in:8080/abc/xyz.html/index.php (xyz.html is a folder) as .... http://www.example.in:8080/abc/xyz.html Can ...
Sreekanth Sagar's user avatar
-2 votes
2 answers
2k views

Mod Rewrite code with out changing the url in address bar

I When I call http://www.mysite.in/abc/xyz it shoud show up http://www.mysite.in/abc/xyz/index.php but the url shout not change in address bar and it should work with out "/" in the address. Please ...
Sreekanth Sagar's user avatar