Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-22-2011, 01:33 PM   #1
Registered: Dec 2004
Posts: 40

Rep: Reputation: 15
URL Forwarding and Masking

We want to mask the URL displayed on the ADDRESS BAR. For example say.. I want to redirect the domain name ABC.COM to say XYZ.COM but I want to show the URL ABC.COM on the ADDRESS BAR instead of XYZ.COM.

Here are the actual details. We have a very long URL (eg. We decided to purchase a Domain Name from a hosting site so the idea is for people to go to and it will do a URL Forwarding and Masking to But people will always see on their URL.

We have tried adding the code below on the /etc/httpd/conf file where the VirtualHost directive resides but its affecting every directory on the site returning 500 Error. I am not well versed in dealing with apache configuration but I am guessing the '*' is causing the problem.

<VirtualHost *:80>
    ServerAdmin root@localhost
    DocumentRoot /var/www/html/purdue/sales
How can I modify this so it only affects the indicated site or directory above?
Can anyone help?

Last edited by ceci2; 12-22-2011 at 01:35 PM.
Old 12-22-2011, 04:40 PM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,478

Rep: Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480

You can look at error_log to find out why you get the 500 error
Your vhost config looks good. Assuming that both and resolving to the IP of your apache server, you can add a:
so works too.

I am not well versed in dealing with apache configuration but I am guessing the '*' is causing the problem.
If you have a
NameVirtualHost *:80
then the asterisk "*" is correct



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid ACL to allow access to a child URL below a blocked main URL soslinux Linux - Server 1 10-13-2011 02:47 AM
.htaccess domain / url forwarding max_tcs Linux - Software 1 12-17-2007 10:40 AM
forwarding url to local IP helot Linux - Networking 4 01-02-2005 08:53 AM
URL Forwarding MikeyCarter General 1 10-14-2003 10:44 AM
URL Redirect (with Masking) BxBoy General 0 03-11-2003 09:44 PM

All times are GMT -5. The time now is 08:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration