LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Configuring a RoR app w/ Mint...

Reply
 
Thread Tools Display Modes
  #1  
Old 04-02-2007, 09:28 AM
travisbell travisbell is offline
Senior Member
 
Join Date: Jan 2007
Location: Calgary, Canada
Posts: 51
Default 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!
Reply With Quote
  #2  
Old 04-02-2007, 10:30 AM
mistwang mistwang is offline
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.
Reply With Quote
  #3  
Old 04-02-2007, 11:25 AM
travisbell travisbell is offline
Senior Member
 
Join Date: Jan 2007
Location: Calgary, Canada
Posts: 51
Quote:
Originally Posted by mistwang View Post
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,
Reply With Quote
  #4  
Old 04-02-2007, 11:53 AM
mistwang mistwang is offline
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.
Reply With Quote
  #5  
Old 04-02-2007, 01:37 PM
travisbell travisbell is offline
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,
Reply With Quote
  #6  
Old 04-02-2007, 03:29 PM
mistwang mistwang is offline
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".
Reply With Quote
  #7  
Old 04-02-2007, 04:04 PM
travisbell travisbell is offline
Senior Member
 
Join Date: Jan 2007
Location: Calgary, Canada
Posts: 51
Quote:
Originally Posted by mistwang View Post
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!
Reply With Quote
  #8  
Old 04-03-2007, 08:54 AM
travisbell travisbell is offline
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?
Reply With Quote
  #9  
Old 04-03-2007, 10:05 AM
mistwang mistwang is offline
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.
Reply With Quote
  #10  
Old 04-03-2007, 10:14 AM
travisbell travisbell is offline
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!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:35 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.