Solved

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

Posted on 2011-09-15
1
395 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

636 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