[Lula] httpd.conf redirect / authorization mix

Cisco Serret cisco at jetsetstudios.com
Tue Aug 29 17:27:20 EDT 2006


We got a httpd.conf file with 
<Directory /home/website/html>
Options FollowSymLinks
AuthUserFile /var/www/.htpasswd
AuthGroupFile /dev/null
AuthName "Enter Password"
AuthType Basic
require valid-user
</Directory>

We now want it so that if a user browses to the site, ie: http://www.website.com/
he gets redirected to a different website.
However, we also want all content on http://www.website.com/ to be protected by authorization.

So, I guess I'd like to set this up:
People who want to get to the content (and have the user/password access) could go to http://www.website.com/index2.php
Going to http://www.website.com/index.php would simply redirect to a different website.

The site that is under authorization protection in http://www.website.com/ is a large website that the owners no longer want to be accessable to the public, but to which they want to be able to continue to go to.

How would that be setup in httpd.conf?

Cisco Serret | Internet Programmer| Jetset Studios | tel. 310.235.1014 | cell 907.727.9495 | fax. 310.914.0469
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/lula_lula.org/attachments/20060829/f5e4755c/attachment.html 
-------------- next part --------------
_______________________________________________
Lula mailing list
Lula at lula.org
http://www.lula.org/mailman/listinfo/lula


More information about the Lula mailing list