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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > ForceType/PHP without .php extension

Reply
 
Thread Tools Display Modes
  #11  
Old 08-28-2006, 12:10 AM
aambults aambults is offline
New Member
 
Join Date: Aug 2006
Posts: 1
Default Same problem

Hi !

I have a same problem when tried to migrate from Apache 2.0.54 to LIGHTSPEED 2.2.

There are .htaccess (in DOCROOT) file whitch force apache+php to use file portal as php file :

...

<Files portal>
ForceType application/x-httpd-php
</Files>

...

Then I add context in vhost context :
...
<context>
<type>NULL</type>
<uri>exp.*)/portal</uri>
<location>$DOC_ROOT/$1/portal</location>
<allowBrowse>1</allowBrowse>
<forceType>application/x-httpd-php</forceType>
<accessControl>
</accessControl>
<addDefaultCharset>off</addDefaultCharset>
<rewrite>
</rewrite>
</context>
...

But it force lightspeed to use portal as php file, but without parameeters. I need to use portal with parameeters for example :

/portal/news/73/articles/81077

In fact there was no directory news or 73 or articles - those are parameeters whitch portal should understood.

What should I change in context definitions ?

Andris
Reply With Quote
  #12  
Old 08-28-2006, 09:39 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
You can try:
Code:
 
<uri>exp: (.*)/portal/(.*)</uri>
Only drawback is that PATH_INFO environment variable will no longer be set. If you code depends on _SERVER['PATH_INFO'] you can consider use

Code:
 
<location>$DOC_ROOT/$1/portal?path_info=$2</location>
_REQUEST['path_info'] is what _SERVER['PATH_INFO'] was.
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
Blocking files by extension Marcus Install/Configuration 2 02-28-2007 03:09 PM
Missing script handler for suffix '.php', access denied! ts77 Install/Configuration 5 03-31-2005 01:54 PM


All times are GMT -7. The time now is 10:19 PM.



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