Home > Archive > Linux/Unix > January 2003 > Apache mod_rewrite





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

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
Mr. Linux Guy

2003-01-27, 6:44 am

http://httpd.apache.org/docs-2.0/install.html
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.
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2009 examnotes.net