Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Redirecting Domains With Apache - Help!
post May 8 2003, 02:14 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 8-May 03
Member No.: 796

I hope someone can help me with this little problem:

I have a linux server running apache. My main website is running as I need to setup the server so that my other registered domains, eg.,, etc., will redirect to regardless of the page opened within the domain.

I am running DNS and have created SOA's for all the extra domains. Each one has only the following added:

CNAME - alias host: www target:

And nothing else - eg. No A, MX, etc.

When I go to one of the extra domains, I just get the server's 404 error page.

Someone in support told me I need to update the httpd.conf file - I have had a look, but this is really stretching my linux skills. Can anyone please tell me exactly what I need to add/edit on the httpd.conf file to update the HTTP headers for the above. Below is the entry for the main domain - there are no other entries for the extra domains:

DocumentRoot /home/domain/domain2/web
ErrorLog "|/usr/ins/intel/bin/webspy /home/domain/domain2/logs/error_log"
TransferLog "|/usr/ins/intel/bin/webspy /home/domain/domain2/logs/access_log"
RewriteEngine on
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*)$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/domain/domain2/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/domain/domain2/users/$1/web/$3
AddHandler server-parsed .shtml
AddType text/html .shtml
<Location />
Options +Includes

Many thanks,
Go to the top of the page
+Quote Post
post May 9 2003, 06:56 AM
Post #2

LinuxHelp Admin

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1

Just shove the other domains under serveralias and restart apache.


I have the same setup with and

Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 18th June 2018 - 06:20 PM