Apache Default Index
Ok, I have apache configured to default to index.html in directories other then root. Is there away to configuring it so I don't need the slash?
Quote:
Just curious as I hate it when a server error pops up if someone forgets to enter the slash. Cheers, Cool Hand... |
I don't thinks this is a Linux issue, it is an Apache issue.
Anywho, I would try using Mod Rewrite (http://httpd.apache.org/docs/mod/mod_rewrite.html). I've never used it, so I can't be of help there, but take a look at the link I gave you. calcon |
Drop the trailing slash off your DocumentRoot and/or Directory directives.
ie use DocumentRoot /var/www <Directory /var/www/somefolder> ........... </Directory> |
Bamm baby Thanks! I'll test that out tonight.
Cheers, Cool Hand... |
Quote:
DocumentRoot /var/www/html <Directory /var/www/html/camscamps> nothing is here now..... should there be? </Directory> Doesn't seem to do anything. I restarted the server and I still need to type.. http://www.example.com/camscamps/ I would really like to get rid of that slash at the end.... Cheers, Luke |
Are you loading mod_dir?
From the Apache website: 'Provides for "trailing slash" redirects and serving directory index files' |
Quote:
Code:
<Directory /> Code:
<Directory "/www/www.somesite.org"> Code:
<Directory "/www/www.somesite.org/files"> Quote:
|
Thank you :) It worked.
Cheers, Cool Hand... |
All times are GMT -5. The time now is 08:12 PM. |