Removing the "index.php?" on Lighttpd setup?

Author Message

DeAndre Johnson

Monday 03 November 2008 8:05:40 pm

How is this possible? Do you follow the same step as you would with Apache?

I am, because I choose to be!

Gunnstein Lye

Friday 07 November 2008 12:47:36 am

Hi!
This setting will get rid of index.php:

[SiteAccessSettings]
ForceVirtualHost=true

If you run the setup wizard, it will complain that you are not in virtual host mode. Ignore it - it just fails to detect this correctly for ligttpd (it's not an officially supported webserver, after all).

Here is one example of a port based virtual host configuration:

$SERVER["socket"] == "localhost:81" {
server.document-root = vhosts_dir + "/ezpublish-4.0.0"
dir-listing.activate = "disable"

url.rewrite-once = (
"^/var/.*" => "$0",
"^/.*\.(css|html|htm|pdf|js|ico|png|gif|jpe?g|swf)$" => "$0",
"^/.*?(\?.*)?$" => "/index.php$1"
)
}

DeAndre Johnson

Saturday 08 November 2008 1:35:40 am

Thanks for the reply, I had finally figured it out myself. Will Lighttpd ever be officially supported?

I am, because I choose to be!

Gunnstein Lye

Monday 10 November 2008 12:28:29 am

If lighttpd usage increases enough, we will support it. So far, there hasn't been much demand. I have only used it on my laptop and my home server.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 22:23:37
Script start
Timing: Jan 30 2025 22:23:37
Module start 'layout'
Timing: Jan 30 2025 22:23:37
Module start 'content'
Timing: Jan 30 2025 22:23:37
Module end 'content'
Timing: Jan 30 2025 22:23:37
Script end

Main resources:

Total runtime0.0225 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.2891151.2266
Module start 'layout' 0.00550.0031 739.5156220.7188
Module start 'content' 0.00850.0124 960.23441,001.8672
Module end 'content' 0.02090.0016 1,962.101633.9922
Script end 0.0225  1,996.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.4979140.0002
Check MTime0.00104.6558140.0001
Mysql Total
Database connection0.00083.660610.0008
Mysqli_queries0.002310.220230.0008
Looping result0.00000.034910.0000
Template Total0.00125.110.0012
Template load0.00093.944010.0009
Template processing0.00031.166610.0003
Override
Cache load0.00062.755210.0006
General
dbfile0.00114.748980.0001
String conversion0.00000.037040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs