Solved

Lighttpd Re Write URL web server example needed....

Posted on 2011-09-15
1
386 Views
Last Modified: 2013-11-22
How do i rewrite this URL for lighttpd like for apache below:

Example:  This is for apache.
This example points http://server1.abc.com/~user to http://www.xyz.com

RewriteCond %{HTTP_HOST} ^server1.abc.com$
RewriteCond %{REQUEST_URI} ^/~user$
RewriteRule (.*) http://www.xyz.com [R=301,L]

I need the same for lighttpd............
0
Comment
Question by:ITCity
1 Comment
 
LVL 9

Accepted Solution

by:
parparov earned 500 total points
ID: 36550295
$HTTP["host"] =~ "^server1.abc.com$" {
  url.redirect = (
     "^/~user$" => "http://www.xyz.com"
  )
}

http://redmine.lighttpd.net/wiki/1/Docs:ModRewrite
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question