Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: IIS6, Apache, Joomla, PHP Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
rahennig
Newbie
Newbie


Joined: 08 July 2008
Location: United States
Online Status: Offline
Posts: 3
Posted: 08 July 2008 at 4:12pm | IP Logged Quote rahennig

So, we've got IIS6 servers and I need to get Joomla running and instead of messing with trying to get Joomla workign on IIS6, I've decided to install Apache and PHP onto one of the machines and have Apache run on port 7755 and use ISAPI_Rewrite to reverse proxy to Apache. 

To get things started, I decided to create a rule to forward requests over to Apache whenever a request matches:

http://www.mydomain.com/apache/rest/of/path/here

and install Joomla into htdocs under the directory 'joomla'

Here is my configuration file:
Code:

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.51
RewriteEngine On

LogLevel debug
RewriteLog "C:\Program Files\Helicon\ISAPI_Rewrite3\Rewrite.log"
ErrorLog "C:\Program Files\Helicon\ISAPI_Rewrite3\error.log"

RewriteProxy ^joomla(.*) http\://www.mydomain.com:7575/joomla$1 [NC,P,H]


This works if my request string is just

http://www.mydomain.com/joomla
or
http://www.mydomain.com/joomla/

but if I do:

http://www.mydomain.com/joomla/index.php

both Firefox and IE return nothing.

I noticed from the logs, that index.php is redirecting to installation/index.php and so I tried

http://www.mydomain.com/joomla/installation/index.php

which again returned nothing.

I then tried telnetting in and typing

GET /joomla/installation/index.php HTTP/1.0

from which I got the expected Joomla installation configuration page.

Here is  the apache log:

Code:

129.116.81.45 - - [08/Jul/2008:15:47:03 -0500] "GET /joomla/index.php HTTP/1.1" 302 -
129.116.81.45 - - [08/Jul/2008:15:47:03 -0500] "GET /joomla/installation/index.php HTTP/1.1" 200 8173
129.116.81.45 - - [08/Jul/2008:15:47:57 -0500] "GET /joomla/installation/index.php HTTP/1.0" 200 8173


and here is the IIS6 log:

Code:

2008-07-08 20:42:20 129.116.81.45 GET /joomla/installation/index.phpx.rwhlp p=16 80 - 146.6.159.48 - 200 0 0
2008-07-08 20:47:03 129.116.81.45 GET /joomla/index.phpx.rwhlp p=16 80 - 146.6.159.48 Mozilla/5.0+(Windows;+U;+Windows+NT+5.2;+en-US;+rv:1.8.1.15)+Gecko/20080623+Firefox/2.0.0.15 200 0 0
2008-07-08 20:47:05 129.116.81.45 GET /joomla/installation/index.phpx.rwhlp p=16 80 - 146.6.159.48 Mozilla/5.0+(Windows;+U;+Windows+NT+5.2;+en-US;+rv:1.8.1.15)+Gecko/20080623+Firefox/2.0.0.15 200 0 64


and I would post a rewrite log but I seem to get none.

The HTTP response, without all of the response HTML is

Code:

HTTP/1.1 200 OK
Connection: close
Date: Tue, 08 Jul 2008 20:52:57 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Content-Type: text/html; charset=utf-8
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Last-Modified: Tue, 08 Jul 2008 20:52:57 GMT
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Pragma: no-cache
Set-Cookie: 9d4bb4a09f511681369671a08beff228=v1gcg4mdnn4278e3g4ar9njci0; path=/
X-Powered-By: PHP/5.2.5





Edited by rahennig - 08 July 2008 at 4:24pm
Back to Top View rahennig's Profile Search for other posts by rahennig
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 673
Posted: 09 July 2008 at 6:04am | IP Logged Quote Vyacheslav

Hi rahenning!

Please try this solution:
Code:
RewriteProxy ^joomla(.*)$ http://www.mydomain.com:7575/joomla/?%{QUERY_STRING} [NC,H,QSA]


Also, if you want to provide rewrite.log, please set RewriteLogLevel to 9 in your configuration file.
If solution doesn't work, please provide your rewrite.log


Edited by Vyacheslav - 09 July 2008 at 6:05am


__________________
Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
rahennig
Newbie
Newbie


Joined: 08 July 2008
Location: United States
Online Status: Offline
Posts: 3
Posted: 09 July 2008 at 9:28am | IP Logged Quote rahennig

I tried that, here's the logs:

IIS6:

Code:

2008-07-09 14:01:10 129.116.81.45 GET /joomla/index.phpx.rwhlp p=16 80 - 146.6.159.48 Mozilla/5.0+(Windows;+U;+Windows+NT+5.2;+en-US;+rv:1.8.1.15)+Gecko/20080623+Firefox/2.0.0.15 200 0 0

Apache:

Code:

129.116.81.45 - - [09/Jul/2008:09:01:10 -0500] "GET /joomla/?%7BQUERY_STRING%7D HTTP/1.1" 200 1456

And still no rewrite.log being created by ISAPI_Rewrite3.

 

Back to Top View rahennig's Profile Search for other posts by rahennig
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 673
Posted: 09 July 2008 at 10:02am | IP Logged Quote Vyacheslav

Hi rahennig!

1) Please check RewriteLogLevel variable in httpd.conf file.
2) Also, please check your permissions, according to http://www.helicontech.com/isapi_rewrite/doc/security.htm

After this actions, maybe you would provide to us your rewrite.log.


__________________
Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
rahennig
Newbie
Newbie


Joined: 08 July 2008
Location: United States
Online Status: Offline
Posts: 3
Posted: 09 July 2008 at 10:38am | IP Logged Quote rahennig

I got the rewrite log to work:

 

Code:

146.6.159.48 146.6.159.48  Wed, 09-Jul-2008  10:14:04 GMT [ficp.engr.utexas.edu/sid#1][rid#19734760/initial] (2) init rewrite engine with requested uri /joomla/index.php
146.6.159.48 146.6.159.48  Wed, 09-Jul-2008  10:14:04 GMT [ficp.engr.utexas.edu/sid#1][rid#19734760/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
146.6.159.48 146.6.159.48  Wed, 09-Jul-2008  10:14:04 GMT [ficp.engr.utexas.edu/sid#1][rid#19734760/initial] (1) Htaccess process request e:\inetpub\wwwroot\.htaccess
146.6.159.48 146.6.159.48  Wed, 09-Jul-2008  10:14:04 GMT [ficp.engr.utexas.edu/sid#1][rid#19734760/initial] (3) applying pattern '^joomla(.*)$' to uri 'joomla/index.php'
146.6.159.48 146.6.159.48  Wed, 09-Jul-2008  10:14:04 GMT [ficp.engr.utexas.edu/sid#1][rid#19734760/initial] (1) escaping http://ficp.engr.utexas.edu:9797/?{QUERY_STRING}
146.6.159.48 146.6.159.48  Wed, 09-Jul-2008  10:14:04 GMT [ficp.engr.utexas.edu/sid#1][rid#19734760/initial] (2) forcing proxy-throughput with /joomla/index.phpx.rwhlp?p=16
146.6.159.48 146.6.159.48  Wed, 09-Jul-2008  10:14:04 GMT [ficp.engr.utexas.edu/sid#1][rid#19734760/initial] (1) go-ahead with proxy request /joomla/index.phpx.rwhlp?p=16 [OK]
146.6.159.48 146.6.159.48  Wed, 09-Jul-2008  10:14:04 GMT [ficp.engr.utexas.edu/sid#1][rid#19734760/initial] (2) rewrite 'joomla/index.php' -> '/joomla/index.phpx.rwhlp?p=16'
146.6.159.48 146.6.159.48  Wed, 09-Jul-2008  10:14:04 GMT [ficp.engr.utexas.edu/sid#1][rid#19734760/initial] (2) internal redirect with /joomla/index.phpx.rwhlp?p=16 [INTERNAL REDIRECT]

Back to Top View rahennig's Profile Search for other posts by rahennig
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4701
Posted: 10 July 2008 at 4:45am | IP Logged Quote Anton

We would advise you to install Joomla on IIS, this solution would have higher performance.

Also please try to use this rule:

RewriteProxy ^joomla(.*)$ http://www.mydomain.com:7575/joomla$1 [NC,H,QSA]


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 673
Posted: 10 July 2008 at 5:04am | IP Logged Quote Vyacheslav

Hi rahennig!

Please insert this PHP-code at the begin of your index.php:
Code:
if (isset($_SERVER['HTTP_X_REWRITE_URL']))

{
    $_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_REWRITE_URL'];
}

Without it, you can have some troubles with Joomla and ISAPI_Rewrite.



__________________
Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum