Re: mod_rewrite on Windows with Apache 2.2

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

 



On Mon, Jun 29, 2009 at 7:04 PM, Peter Kay<petya_98@xxxxxxxxx> wrote:
>
> ----- Original Message ----
>
>> From: tomcatastrophe <nabble@xxxxxxxxxxxxxxxx>
>> To: users@xxxxxxxxxxxxxxxx
>> Sent: Monday, June 29, 2009 9:51:40 PM
>> Subject:  mod_rewrite on Windows with Apache 2.2
>>
>>
>> I have Apache 2.2 working perfectly on my Linux installation and now I am
>> trying to set up a copy on my Windows box for development.
>>
>> Everything works fine except rewriting of URLs.
>>
>> I have searched and searched online, but every guide and forum says
>> something different. The information is poorly organized and I can't seem to
>> find a simple answer.
>>
>> Here is the basic problem:
>>
>> I have installed Apache 2.2 for Windows with the default configuration,
>> nothing fancy. I set up some virtual hosts, they are detected and work fine.
>> I can view my pages, etc.
>>
>> Now I want to add URL rewriting for one of my hosts.
>>
>> I added my rules and directive to the virtual host (these work fine on
>> Linux):
>>
>>      ProxyPreserveHost On
>>      ProxyPassReverse / ajp://localhost:8009/
>>      RewriteEngine On
>>      RewriteRule ^/(.*)$ ajp://localhost:8009/$1 [P]
>>
>> But when trying to start Apache after doing this I get an error that the
>> service failed to start.
>
>
> Did you check for a specific error in the Event Log?
>
> --Peter
>
>
>
>
> ---------------------------------------------------------------------
> 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
>
>

Don't know if this could be the problem (and it may even differ by
version/configuration), but for my own local webservers (apache 2.2.11
on ubuntu and whatever comes with  os x 10.5) the leading slash after
the ^ should not be used in the regex.

---------------------------------------------------------------------
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