English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

my apache server home page to another server
for ex: http://www.test.com

http://www.example.com
how to configure the httpd.conf file.

2007-02-27 15:42:59 · 2 answers · asked by nanaji j 1 in Computers & Internet Programming & Design

2 answers

The Apache Redirect directive allows you to tell clients and browsers about documents which used to exist in one place but have since moved. This allows you to tell the clients and browsers where to look for the relocated document.

Format: Redirect old-URI new-URL

The Redirect commands need to be entered in the block within Apache's main configuration file httpd.conf.


servername http://www.test.com

Redirect /index.html +
http://www.example.com/index.html

2007-02-27 15:49:43 · answer #1 · answered by nos8wire 2 · 0 0

Well it depends on several issues.
You can just point the DNS without even bothering apache.
Just put both domains in the dns pointing to the same IP.


In apache you use a virtual host entry

Servername www.test.com
ServerAlias *
Redirect permanent / http://example.com/


see the manual http://httpd.apache.org/docs/1.3/mod/mod_alias.html

2007-02-27 23:57:25 · answer #2 · answered by Tracy L 7 · 0 0

fedest.com, questions and answers