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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Does lsws has multiviews function?

Reply
 
Thread Tools Display Modes
  #1  
Old 09-16-2005, 04:05 PM
elvis7 elvis7 is offline
Member
 
Join Date: Sep 2005
Posts: 14
Default Does lsws has multiviews function?

Hi, I just started using lsws se V2.0.7. Before i used apache, I had there function called MultiViews, does lsws has this function ? If yes, how can it be added ?
Reply With Quote
  #2  
Old 09-16-2005, 08:44 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
No, LSWS does not have explicit multiview support, but you can use simple rewrite rules to implement some simple multiview functions.
Reply With Quote
  #3  
Old 09-17-2005, 08:22 AM
elvis7 elvis7 is offline
Member
 
Join Date: Sep 2005
Posts: 14
maybe you can give me please some example? I need some thing like this:
If link is http://mydomain.com/browse it should open http://mydomain.com/browse.php
Thank you.
Reply With Quote
  #4  
Old 09-17-2005, 11:39 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
You can try some thing like:
Code:
RewriteCond <your_doc_root_path>/$1.php      -f
RewriteRule  ^/&#40;.*&#41;$                        /$1.php
Reply With Quote
  #5  
Old 09-17-2005, 01:55 PM
elvis7 elvis7 is offline
Member
 
Join Date: Sep 2005
Posts: 14
didn't work for me
I wrote:
RewriteCond /home/www/myweb/$1.php -f
RewriteRule ^/(.*)$ /$1.php
Reply With Quote
  #6  
Old 09-17-2005, 02:06 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Is URL Rewrite enabled? Did you restart the server after configuration changes?

To debug the rewrite rule, you can turn on the rewrite log by setting Log Level to '9', then check lsws/log/error.log

It works for me.
Reply With Quote
  #7  
Old 09-21-2005, 03:04 PM
elvis7 elvis7 is offline
Member
 
Join Date: Sep 2005
Posts: 14
Still doesn't work. I got:
Enable Rewrite Yes
Log Level 9
Rewrite Rules:
RewriteCond /home/www/torrent/$1.php -f
RewriteRule ^/(.*)$ /$1

here what log shows:
2005-09-22 00:59:19.286 [INFO] [86.57.0.20:61038-0#torrent] [REWRITE] Rule: Match '/' with pattern '^/(.*)$', result: 2
2005-09-22 00:59:19.312 [INFO] [86.57.0.20:61038-0#torrent] [REWRITE] stat( /home/www/torrent/.php ) failed

I'm new to lsws, but I already like this software. Maybe I'm doing something wrong ?
Reply With Quote
  #8  
Old 09-21-2005, 03:18 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
rewrite rule should be:

RewriteCond /home/www/torrent/$1.php -f
RewriteRule ^/(.*)$ /$1.php

You are accessing URL '/', this does not work, you should use directory indexing instead, add "index.php" or whatever index file used to "Directory Indexes". if you access "/index" URL, the above rule will serve it with /home/www/torrent/index.php.
Reply With Quote
  #9  
Old 09-22-2005, 01:04 AM
elvis7 elvis7 is offline
Member
 
Join Date: Sep 2005
Posts: 14
Yes, it works now. Tnx for help :?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
LSWS 3.0RC2 and trac-fcgi Erg CGI/Perl/Python 13 02-06-2009 12:16 PM
php make errors UbiquityClint Install/Configuration 9 07-12-2007 10:53 AM
Can't compile ruby-lsapi on Centos 64bit aemadrid Bug Reports 10 11-01-2006 03:47 PM
LSWS killed my pet squirrel!!! DNSFusion Bug Reports 1 07-24-2004 08:01 PM
Testimonial : LSWS as web app frontend instead of Apache bogus Feedback/Feature Requests 1 03-26-2004 10:32 AM


All times are GMT -7. The time now is 05:46 AM.



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