Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

vhost redirection to another server

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  mod_security on windows  
Author Message
nospam220

External


Since: Sep 23, 2004
Posts: 4



(Msg. 1) Posted: Thu Sep 23, 2004 5:45 pm
Post subject: vhost redirection to another server
Archived from groups: alt>apache>configuration (more info?)

Hi,

I have a vhost entry like this:

<VirtualHost ip>
ServerAdmin webmaster.DeleteThis@domain1.de
DocumentRoot /var/www/localhost/htdocs/domain1
ServerName domain1.de
ServerAlias *.domain1.de
ErrorLog /var/log/domain1.de-error.log
CustomLog /var/log/apache/domain1.de-access.log common
</VirtualHost>

Now I want - when domain1.de is called - a redirection to another server to
be performed.
So, content should not be looked up in

/var/www/localhost/htdocs/domain1

anymore, but in sth. like

www.domain2.de/index.html

where domain2.de is on another machine.

Is sth. like that possible ?

Thanks.

 >> Stay informed about: vhost redirection to another server 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Thu Sep 23, 2004 5:45 pm
Post subject: Re: vhost redirection to another server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-09-23, Ralf Koms <nospam.DeleteThis@noone.de> wrote:
 > So, content should not be looked up in
 > /var/www/localhost/htdocs/domain1
 > anymore, but in sth. like
<font color=purple> > <a style='text-decoration: underline;' href="http://www.domain2.de/index.html</font" target="_blank">www.domain2.de/index.html</font</a>>
 > where domain2.de is on another machine.
 > Is sth. like that possible ?

You have two way: mod_proxy or a plain Redirect. In the first case
your machine will reqest the pages and display them like they are
on the local machine, in the second case the user will receive a
'redirected' message and will go to the destination machine.

Davide

--
That was a very long fortune cookie, so I removed it.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: vhost redirection to another server 
Back to top
Login to vote
nospam220

External


Since: Sep 23, 2004
Posts: 4



(Msg. 3) Posted: Thu Sep 23, 2004 9:26 pm
Post subject: Re: vhost redirection to another server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide,

"Davide Bianchi" <davideyeahsure.RemoveThis@onlyforfun.net> wrote in message
news:slrncl5hrc.27a.davideyeahsure@fogg.onlyforfun.net...
 > On 2004-09-23, Ralf Koms <nospam.RemoveThis@noone.de> wrote:
  > > So, content should not be looked up in
  > > /var/www/localhost/htdocs/domain1
  > > anymore, but in sth. like
<font color=green>  > > <a style='text-decoration: underline;' href="http://www.domain2.de/index.html</font" target="_blank">www.domain2.de/index.html</font</a>>
  > > where domain2.de is on another machine.
  > > Is sth. like that possible ?
 >
 > You have two way: mod_proxy or a plain Redirect. In the first case
 > your machine will reqest the pages and display them like they are
 > on the local machine, in the second case the user will receive a
 > 'redirected' message and will go to the destination machine.
 >

Thanks for your answer !
That helped Wink<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: vhost redirection to another server 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
DAV in vhost - Hello, I followed a dav guide and succeeded in a way that allows me to connect to a secured area. ssl.conf: <VirtualHost _default_:443> Alias /webdav/ "/home/webdav/" <Directory /home/webdav> DAV on AuthType Basic AuthNam...

VHOST or ...? - Hi, I'm a newbie on Apache, so I need help figuring out what to do when I have one webserver with one IP-address and I want to have two sites: "www.mydomain.com" and "site2.mydomain.com". The first site should respond when you type a...

VHOST - I have the domain nj2t.net allready up and running, I have just got nj2t.co.uk, can I just copy the virtual host entry for nj2t.net and paste it in as a new VHost entry and change the web parts from .net to .co.uk and keep using the same directories........

VHost Q again - Ok I had this working once... then I had to re-install apache and now it doesn't work... well it works, but it all goes to the main page's index file... what am I missing here Do I need to comment out the other listen and documentroot to make this work...

CGI vhost - Greetings, I am trying to set up a vhost that will automatically execute a cgi binary and I'm not too sure how to go about it. If I go to the address and add /cgi-bin/<file_name> it works fine, so I know cgi is configured correctly. Also my name...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]