Solved

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

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

706 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

19 Experts available now in Live!

Get 1:1 Help Now