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

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 + "/Exponential-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.