| Author |
Apache mod_rewrite
|
|
| bandit55 2003-01-27, 6:34 am |
| Hello, need some help.
I am doing a little project and trying to setup a Apache server. The server is working and now I need to map or rewrite an URL. But it seems that I dont not have the module rewrite installed. Where can I find this module and how would I install it? I know that I have the certification but it seems I can not find this info.
Bandit | |
|
|
| bandit55 2003-01-27, 8:43 am |
| The next problem I have is that my site can be reached on our site with www then we have a member site that is used for the users. www/members/members.html
When the users log on everything is fine until the remove the members.html. Then they can see the files for the site. How can I change this so that when they type www/members/ they will be redirected to the html file?
Bandit | |
| Mr. Linux Guy 2003-01-27, 9:04 am |
| Use the "DirectoryIndex" directive to make:
DirectoryIndex memebers.html
Your default file for that directory. To solve the browsing problem, you can add the following lines in the file /etc/httpd/conf/httpd.conf.
<Directory /var/www/*>
Options -Indexes
</Directory>
This will stopp all directories by default from being indexed, by preventing all directories under the web root from being browsable. | |
| bandit55 2003-01-27, 9:15 am |
| Does it matter where exactly I put this in the httpd.conf? | |
| Mr. Linux Guy 2003-01-27, 9:33 am |
| Not really. I put mine near the top, usually. |
|
|
|