Solved

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

Posted on 2011-09-15
1
382 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to Change Interface on Cisco IOU 11 83
apache vhosts on mac not being recognized 5 70
Web Reply Form - PHP with Upload 4 54
aix unix tar error 3 42
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

910 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now