|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
I'm using Apache 2.2. I have an .htaccess file that forces users to authenticate AuthType Basic AuthUserFile "/home/dave/www/www/admin/.htpasswd" AuthName Limited! require valid-user but my desire is that before users are prompted to log in, the URL is rewritten if it lacks certain components. Specifically, if the URL does not contain "www" as the first subdomain, I would like it added, and if the URL does not begin with "https", I would like that to be included. So, for example, if a user typed in "mydomain.com/admin", the URL would be rewritten as "https://www.mydomain.com/admin". How can I add these rewrite rules while at the same time only having the user authenticate themselves once? Thanks, - Dave |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On 2007-02-09, laredotornado@zipmail.com <laredotornado@zipmail.com> wrote:
> rewritten if it lacks certain components. Specifically, if the URL > does not contain "www" as the first subdomain, I would like it added, Use the UseCanonicalName directive to 'correct' the domain name. > and if the URL does not begin with "https", I would like that to be > included. Then put a redirect in the http vhost to redirect to the https bit in a <Location > directive. Davide -- Three of your friends throw up after eating chicken salad. Do you think "I should find more robust friends" or "we should check that refrigerator"? -- Donald Becker, on vortex-bug, suspecting a network-wide problem |
|
![]() |
| Outils de la discussion | |
|
|