Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2011-09-15
1
Medium Priority
?
400 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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:
Suggested Courses

670 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