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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Awstats and Rails

Reply
 
Thread Tools Display Modes
  #1  
Old 10-06-2006, 06:09 AM
thijs thijs is offline
Member
 
Join Date: Sep 2006
Posts: 20
Default Awstats and Rails

I'm setting up the awstats integration, great stuff. I'm running into a problem though.

I want to place the awstats folder outside of the document root because the app is deployed by Capistrano and the awstats folder does not stay in the same place.

It gives this error:

[config:vhost:test:awstats] AWStats working directory: /home/test/awstats/ is not inside virtual host root: (null)/home/test/app/current/, AWStats integration is disabled.

Is it possible to put the folder outside of the document root and map it with an alias?

Last edited by thijs; 10-06-2006 at 06:27 AM..
Reply With Quote
  #2  
Old 10-06-2006, 08:25 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
It is not possible to turn this security feature off with current release.
However, you can change your vhroot from "/home/test/app/current/" to "/home/test", and adjust the path to rails application if it is relative to the vhroot.
Reply With Quote
  #3  
Old 10-09-2006, 02:07 AM
thijs thijs is offline
Member
 
Join Date: Sep 2006
Posts: 20
Thanks, but that wouldn't be a really clean solution.

It would be great if this security constraint could be loosened in the next release.
Reply With Quote
  #4  
Old 10-09-2006, 01:28 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Security is the top priority here, the risk is too high to do that.
Another solution is to set AWStats working directory to /home/test/app/current/awstats/, and have Capistrano backup and restore it automatically. I think it is doable.
Reply With Quote
  #5  
Old 10-10-2006, 07:33 AM
dlhhyct dlhhyct is offline
Member
 
Join Date: Aug 2006
Posts: 41
Default how about ln?

ln -s /anywhere/you/want /home/test/app/current/awstats ?
Reply With Quote
  #6  
Old 12-17-2006, 08:23 AM
thijs thijs is offline
Member
 
Join Date: Sep 2006
Posts: 20
Sorry, to bring this up again but it's a bit of an annoyance.

Are there any plans at the moment to allow the awstats directory outside of the public root?

What exactly are the security problems in doing this. Are there security issues with aliasing an external directory in general?
Reply With Quote
  #7  
Old 12-17-2006, 11:30 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
You can change your vhost root to "/home/test/", set document root to "/home/test/app/current/", change the "Rails" context location to "/home/test/app/current/" as well.
This way, you can set awstats working directory to a real directory at "/home/test/awstats".

You need to instantiate the vhost configuration first if you are using the vhost template.

Just a simple configuration change.

Last edited by mistwang; 12-17-2006 at 11:34 AM..
Reply With Quote
  #8  
Old 12-18-2006, 12:55 AM
thijs thijs is offline
Member
 
Join Date: Sep 2006
Posts: 20
Oh, I'm sorry. I misunderstood your reply. This works just fine.
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 11:39 PM.



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