You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "James, Denise" <de...@fldoe.org> on 2005/08/30 16:59:39 UTC
[users@httpd] Redirections in Apache
I would like to know how to complete a request to redirect a website
that is currently virtually hosted so that the virtual host will now
point to a URL not on our network?
The virtual host is currently defined as follows:
# Web World Wonders
<VirtualHost 150.176.9.174>
ServerAdmin WWFeedback@firn.edu
DocumentRoot /usr/local/apache/htdocs/webfiles/others/webworlds
ServerName webworldwonders.firn.edu
ErrorLog /usr/local/apache/logs/webworlds_error_log
CustomLog /usr/local/apache/logs/webworlds_access_log common
ScriptAlias /cgi-bin/
"/usr/local/apache/cgi-bin/firnhostedsites/webworldwonders/"
</VirtualHost>
They now want this to point to a new URL,
http://hauss.freac.fsu.edu/webworld
Would I put a statement under the redirect section of httpd.conf as
shown below? Would I also get rid of the virtual host definition or
does that have to remain in place?
#
# Redirect allows you to tell clients about documents which used to
exist in
# your server's namespace, but do not anymore. This allows you to tell
the
# clients where to look for the relocated document.
# Format: Redirect old-URI new-URL
#
Redirect /usr/local/apache/htdocs/webfiles/others/webworlds
http://hauss.freac.fsu.edu/webworld
Denise O. James
Systems Project Analyst
Florida Department of Education
Education Data Center Rm. B2-24
325 W. Gaines Street
Tallahassee, FL 32399-0400
Phone and Fax: (850) 245-9805
denise.james@fldoe.org
Re: [users@httpd] Redirections in Apache
Posted by Joshua Slive <js...@gmail.com>.
On 8/30/05, James, Denise <de...@fldoe.org> wrote:
> I would like to know how to complete a request to redirect a website that is
> currently virtually hosted so that the virtual host will now point to a URL
> not on our network?
> They now want this to point to a new URL,
> http://hauss.freac.fsu.edu/webworld
>
> Would I put a statement under the redirect section of httpd.conf as shown
> below? Would I also get rid of the virtual host definition or does that
> have to remain in place?
No. Put the redirect inside the <VirtualHost> block. It should look like:
Redirect / http://auss.freac.fsu.edu/webworld/
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org