Questions tagged [directoryindex]

49 questions
0
votes
1 answer

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
  • 505
  • 1
  • 6
  • 16
0
votes
0 answers

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 ServerAdmin…
PsySkeletor
  • 181
  • 1
  • 13
0
votes
2 answers

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.example.com/media/2001/golden_retriever.jpg I get…
Svenskunganka
  • 185
  • 1
  • 4
  • 11
0
votes
1 answer

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 now looks like this. How can i make it look like…
0
votes
3 answers

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 DirectoryIndex index.php to…
csi
  • 1,535
  • 7
  • 22
  • 42
0
votes
1 answer

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 server when xxx.co.uk/ is requested. If no index.php or…
Chris B
  • 23
  • 1
  • 4
0
votes
1 answer

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 default page. Checked these things…
MSlimmer
  • 3
  • 3
0
votes
1 answer

CentOS 6.2 disable httpd autoindex

I am trying to disable the Auto index of directories in the apache config. ServerName example.com ServerAlias www.example.com example.co.uk www.example.co.uk DocumentRoot /var/www/sites/example.com/public ErrorLog…
Alex
  • 209
  • 5
  • 12
0
votes
3 answers

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. /$filename.jpg if the client requests /$filename? For…
ithinkihaveacat
  • 1,604
  • 3
  • 14
  • 18
0
votes
2 answers

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

I have the following virtual host in my Apache configuration: ServerName foobarspaz DocumentRoot "/path/to/document/root" There is no index.html file in the document root directory so accessing…
Simon Lieschke
  • 187
  • 3
  • 9
0
votes
1 answer

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 indexing of dirs (I think) yet not the use of…
dakke
  • 1
  • 1
  • 1
0
votes
1 answer

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: Why is Apache ignoring the "Options Indexes"…
Bevor
  • 113
  • 1
  • 11
0
votes
1 answer

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 '/webdir/page.php' (not to redirect them, but to keep…
Mint
  • 456
  • 2
  • 9
  • 23
0
votes
2 answers

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 autoindex page on a different path. Something like…
BrainStone
  • 103
  • 1
  • 1
  • 9
0
votes
0 answers

Nginx make symlinks in autoindex link to their files but retain their name

I wanted a way for me to easily just rsync a directory up to my server and have a 'for short' way to download a file. Aka d/foo1 > ../download/very-long-file-name.zip I want auto index to retain the name 'foo1' in the HTML it sends over but for the…
VixieTSQ
  • 3
  • 1