Re: A dumb question but it has me stumped...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 29, 2009 at 6:34 AM, Glen Barber <glen.j.barber@xxxxxxxxx> wrote:
> On Sun, Mar 29, 2009 at 6:18 AM, Mike Lyon <mike.lyon@xxxxxxxxx> wrote:
>> Hello Again,
>>
>> I have a reverse proxy configured and I would like to make it so if someone
>> goes to https://www.mydomain.com/ that they get redirected to
>> /beginhere.html
>>
>> I have tried using the alias and redirect directive but I have gotten no
>> where. The various items I have tried are:
>>
>>
>> redirect / /beginhere.html
>> &
>> alias / /beginhere.html
>> &
>> RewriteEngine On
>> RewriteRule ^/$ https://www.mydomain.com/beginhere.html
>>
>> None of these work. Am I even able to do this kind of fine-grained
>> forwarding at the proxy level?
>>

I don't think you can use full URI's in a rewrite rule without using
the R (redirect) flag. So I think the rewrite rule you want is:
RewriteRule ^/$ https://www.mydomain.com/beginhere.html [R]

But is www.mydomain.com the name of the apache server you're actually
configuring, because then you don't need to use the full domain, just

RewriteRule ^/$ /beginhere.html [R]

And in this case, you don't need the [R] flag if you don't want, but
it the new URL won't show up in the user's browser without that flag,
it will be a transparent rewrite performed only the server, the user
will be oblivious to it.

-Brian


-- 
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://pgp.mit.edu/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux