Hi,

On Wed, 16 Oct 2002, nate wrote:

> Sebastiaan said:
> > I think this is easily done with Apache. Does anyone have any hints for
> > this problem?
>
> this is easy, it's called virtual hosting
>
> <VirtualHost YOUR_IP_ADDRESS>
> ServerAdmin webmaster@yourdomain
> ServerName www.myweb.com
> ServerAlias www
> DocumentRoot /home/user/public_html
> </VirtualHost>
>

Thanks for the reply, but I am afraid I forgot to tell something: I do not
have any access to the 'big' webserver other than to upload my pages. The
problem is that that server has a virtual host for that domain and I want
to get it replaced by my own domain.

> you can also do on the "main" server to redirect requests for ~mypage
> to your domain:
>
> RedirectMatch /~myuser(.*)\.*$ http://www.myweb.com
>
When I do this on my server (to which I have full access) I succeeded to
forward http://www.mydomain.com/~myuser/ -> http://www.myweb.com/~mypage/

I have complete control over everything that has to do with mydomain.com,
but non with myweb.com (it is my ISP's server).

What I physically want is that every request sent to
http://www.mydomain.com/ is redirected to http://www.myweb.com/~mypage/,
so http://www.mydomain.com/checkthis.html ->
http://www.myweb.com/~mypage/checkthis.html

(so in fact: www.mydomain.com must be rewritten to www.myweb.com/~mypage)


Thanks,
Sebastiaan

> be sure to restart apache after updating the config:
>
> apachectl configtest
> (if it checks out then..)
> apachectl restart
>
> If you add more then 1 virtual host for each IP on your system you
> need to add the directive
>
> NameVirtualHost YOUR_IP_ADDRESS
>
> above the virst <VirtualHost YOUR_IP_ADDRESS> entry. you only need
> 1 instance of NameVirtualHost.
>
> nate
>
>



--
  NT is the OS of the future. The main engine is the 16-bit Subsystem
  (also called MS-DOS Subsystem). Above that, there is the windoze 95/98
  16-bit Subsystem. Anyone can see that 16+16=32, so windoze NT is a
  *real* 32-bit system.





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to