Forums / Install & configuration / Removing the "index.php?" on Lighttpd setup?

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.