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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [solved] Auto Index not working

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2012, 12:39 PM
sophrosyne sophrosyne is offline
Member
 
Join Date: Jul 2011
Location: Michigan
Posts: 15
Default [solved] Auto Index not working

Hi,

lsws 4.1.10
CentOS release 6.2 (Final)

I am getting an error when 'Options +Indexes' is enabled in a directory's .htaccess file. Litespeed is returning a 'Content-Type: handler/x-httpd-php', which triggers the browser to try and download the file.

How can we get litespeed to create the auto index page properly?

Thank you,

Last edited by NiteWave; 03-07-2012 at 04:45 PM..
Reply With Quote
  #2  
Old 02-28-2012, 07:54 AM
sophrosyne sophrosyne is offline
Member
 
Join Date: Jul 2011
Location: Michigan
Posts: 15
Any update/advice?
Reply With Quote
  #3  
Old 02-28-2012, 10:19 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
is this native lsws vhost or apache vhost?

you can try followings and see if your issue goes away.
1. force reinstall 4.1.10
or
2. upgrade to 4.1.11
Reply With Quote
  #4  
Old 02-28-2012, 10:30 AM
sophrosyne sophrosyne is offline
Member
 
Join Date: Jul 2011
Location: Michigan
Posts: 15
Quote:
Originally Posted by webizen View Post
is this native lsws vhost or apache vhost?

you can try followings and see if your issue goes away.
1. force reinstall 4.1.10
or
2. upgrade to 4.1.11
We're using apache vhost. Auto Index is set to "Yes" in litespeed config. Unfortunately force reinstall didn't work, and I don't see a 4.1.11 available. (we're running enterprise)
Reply With Quote
  #5  
Old 03-01-2012, 11:23 AM
sophrosyne sophrosyne is offline
Member
 
Join Date: Jul 2011
Location: Michigan
Posts: 15
Any update on this?
Reply With Quote
  #6  
Old 03-01-2012, 12:38 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
You can manually download 4.1.11 package from http://www.litespeedtech.com/litespe...downloads.html since auto-update has not enabled for 4.1.11. run upgrade by unpack the package and run ./install.sh from there (choose 'U' option for upgrade when prompted).

BTW, does the setup work for Apache? We could not replicate the issue in our lab. Hence the question.
Reply With Quote
  #7  
Old 03-05-2012, 08:33 AM
aheadley aheadley is offline
New Member
 
Join Date: Mar 2012
Posts: 8
I'm a co-worker of sophrosyne. The 4.1.11 update did not fix the issue, though now instead of the incorrect content type we just get a 404 from litespeed. Here is a (anonymized) snippet of the logs from 4.1.11 with the 404:
http://pastebin.com/2N7CxdAK
The request was for http://example.com/docs/ which points at /home/username/example.com/html/docs/ . There is a .htaccess file in that directory containing (only) "Options +Indexes". It also seems to make no difference if we have the Auto-Index setting set to "Yes" or "Not Set".
Reply With Quote
  #8  
Old 03-05-2012, 04:44 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
Looks like .htaccess is not honored in apache. It would not be honored in lsws either.

Quote:
2012-03-05 11:16:46.362 [DEBUG] [/etc/httpd/conf.d/vhost_example.com.conf:52] processing direcitve: AllowOverride None.
Change it to something like

Quote:
AllowOverride All
Reply With Quote
  #9  
Old 03-06-2012, 08:42 AM
aheadley aheadley is offline
New Member
 
Join Date: Mar 2012
Posts: 8
Sorry for the confusion, the 404 error was caused by a change the client made to their htaccess file (and the AllowOverride None line). I setup a small test case so that doesn't happen again and it looks like the "Content-type: handler/x-httpd-php" issue is still occuring in 4.1.11 . Here is another snippet of the log from a response with the wrong content-type header:
http://pastebin.com/kH171g3T

And the curl request that generated it:
http://pastebin.com/cMXLvujy
Reply With Quote
  #10  
Old 03-06-2012, 09:48 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
following response header for php is not right.
Quote:
Content-Type: handler/x-httpd-php
put something like the following in .htaccess to override it.
Quote:
AddType application/x-httpd-php .php
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 08:14 AM.



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