|
|

04-02-2007, 09:28 AM
|
|
Senior Member
|
|
Join Date: Jan 2007
Location: Calgary, Canada
Posts: 51
|
|
Configuring a RoR app w/ Mint...
Hey guys,
I have a working RoR app and dumped Mint insde /public. Then I setup a context to get the domain.com/mint working and all (to my suprise) is good so far. It even runs the PHP properly 
Here's the catch. Mint says to append the following to your .htaccess, so I did but it's not working.
Code:
AddType application/x-httpd-php .html .htm
php_value auto_prepend_file /var/www/domain/public/mint/config/auto.php
I *could* simply append the js file but I would match rather prefer to have to keep the stats of everything behind the scenes regardless of what is included in my web page.
So, within my LiteSpeed environment, how can I make this work?
Thanks in advance guys!
|

04-02-2007, 10:30 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
It should work. Mabye htaccess support has not been enabled in your setup. Please check "Allow Override" configuration for your RoR vhost.
|

04-02-2007, 11:25 AM
|
|
Senior Member
|
|
Join Date: Jan 2007
Location: Calgary, Canada
Posts: 51
|
|
Quote:
Originally Posted by mistwang
It should work. Mabye htaccess support has not been enabled in your setup. Please check "Allow Override" configuration for your RoR vhost.
|
Which Override would be needed for this function?
LimitAuth
FileInfo
Indexes
Options
Thanks,
|

04-02-2007, 11:53 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
FileInfo and Options, and it does not hurt to check all of them.
It follows the same spec mentioned in Apache/PHP documentation.
|

04-02-2007, 01:37 PM
|
|
Senior Member
|
|
Join Date: Jan 2007
Location: Calgary, Canada
Posts: 51
|
|
I have both the server and vhost set with the following and still, Mint won't pick up and of the visits. Is this correct?

Thanks,
|

04-02-2007, 03:29 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
The configuration looks ok.
You can turn on debug logging by set "Debug Level" to "HIGH" then check error.log see what is going on. Make sure to restart the server after configuration change.
Another way to do it is to create a static context for Mint directory, and add the configurations you mentioned in the first post to "Apache Style Configuration".
|

04-02-2007, 04:04 PM
|
|
Senior Member
|
|
Join Date: Jan 2007
Location: Calgary, Canada
Posts: 51
|
|
Quote:
Originally Posted by mistwang
Another way to do it is to create a static context for Mint directory, and add the configurations you mentioned in the first post to "Apache Style Configuration".
|
This way worked for me. Thanks!
|

04-03-2007, 08:54 AM
|
|
Senior Member
|
|
Join Date: Jan 2007
Location: Calgary, Canada
Posts: 51
|
|
OK, I spoke too soon. I think I got too excited.
Yes, Mint is working in the /mint directory (which is useless) I still can't get anything happening off the root of the site. After I realized what I did with the context, this does make sense 
I enabled debug logging but there is no error related to this.
I also don't see a single error in the logs (/opt/lsws/logs/error.log) either.
Any other avenues to check?
|

04-03-2007, 10:05 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
Have you include the Mint java script in your rails application, I think it is the only thing required to make Mint to collect access information for a Rails application.
|

04-03-2007, 10:14 AM
|
|
Senior Member
|
|
Join Date: Jan 2007
Location: Calgary, Canada
Posts: 51
|
|
Yes, in the end it's looking like that the only way this is going to work.
So for the record, no matter what I tried to do with the .htaccess (which has worked on countless Apache installations for me) I couldn't get LiteSpeed to get it to click for me.
For now, just including:
Code:
<script src="/mint/?js" type="text/javascript"></script>
Will do.
Thanks!
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 12:35 AM.
|
|