Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
103 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 ...
0
votes
0answers
82 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 ...
0
votes
0answers
140 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 ...
0
votes
2answers
806 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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
43 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 ...
-3
votes
2answers
230 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 ...
-1
votes
2answers
76 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 ...
0
votes
1answer
584 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/> ...
0
votes
1answer
310 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 ...
1
vote
1answer
137 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 ...
1
vote
1answer
69 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 ...
1
vote
1answer
3k 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: ...
1
vote
1answer
373 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; ...
0
votes
1answer
88 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 ...
0
votes
0answers
214 views

DirectoryIndex directive doesn't work occasionally and 'too many redirects'

I hosted several wordpress sites on a single linux server.Below is one of my sites' .htaccess file: DirectoryIndex index.php # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On ...
1
vote
1answer
331 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 ...
1
vote
1answer
311 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 ...
1
vote
1answer
306 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 ...
0
votes
1answer
738 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 ...
2
votes
1answer
2k 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 ...
0
votes
1answer
154 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 ...
1
vote
1answer
463 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 ...
1
vote
1answer
390 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 ...
0
votes
1answer
765 views

cPanel & DirectoryIndex - server default page showing for domain root

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 ...
1
vote
1answer
218 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 ...
8
votes
1answer
4k 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: ...
1
vote
1answer
680 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 ...
3
votes
3answers
2k 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 ...
0
votes
3answers
65 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. ...
3
votes
3answers
3k 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 ...
0
votes
2answers
3k 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 ...
0
votes
1answer
2k 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 ...
0
votes
1answer
727 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: ...
0
votes
1answer
694 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 ...
0
votes
1answer
657 views

Conditional Directory Index In Htaccess

This relates to the question in: http://stackoverflow.com/questions/1599717/conditional-directoryindex-in-htaccess The answer states that the following should work: SetEnvIf Remote_Addr ...