Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7011023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:04:28+00:00 2026-05-27T22:04:28+00:00

I am migrating an over loaded server from apache2 to lighttpd, currently I am

  • 0

I am migrating an over loaded server from apache2 to lighttpd, currently I am proxying all the static resources from the lighttpd server but that still doesn’t fix the load problems.

I want to migrate everything to lighttpd but I’ve run into a problem.

Apache2 has multiviews functionality to clean up URLs which lighttpd doesn’t.

I found the following code to do it in lighttpd

url.rewrite-if-not-file = ( "^([^?]*)(\?.*)?$" => "$1.php$2" )

It works but it has two problems

1: website.com/ returns 404, I guess its trying to find /.php

2: website.com/user/Username also returns 404 (Its supposed to find user.php, then the php script does the rest by looking at $_SERVER[‘REQUEST_URI’])

How do I rewrite the code to fix these problems?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:04:28+00:00Added an answer on May 27, 2026 at 10:04 pm

    I’d prolly try to use/add something like:

    url.rewrite-once = (
     "^/$" => "/",
     "^/users/(.*)" => "/users/user.php"
    )
    

    http://redmine.lighttpd.net/wiki/1/Docs:ModRewrite
    About your load problems: You might want to read about squid which has caching besides simple proxy features.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we are migrating over to oracle from sql server side. on sqlserver we used
I'm using SQL Server 2005. I am migrating data over from a current database
I'm migrating some websites over to another server. One of the websites is built
I am migrating data from a Oracle on VMS that accesses data on SQL
We will soon be migrating company data from our pre-production server to production with
I'm working on migrating all of our reporting solutions to SQL Server Reporting Services
I am currently migrating my code from the old-style enum to enum class. The
i am migrating a site over to asp.net from an asp.net site and one
We are migrating ASP code that used ADO to connect to SQL Server 2000.
I have an older classic ASP website that I am migrating over to IIS7.5.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.