[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Redirecting subdomains to different URL's
- Subject: RE: [cobalt-users] Redirecting subdomains to different URL's
- From: Ryland Bouchard <rbouchard@xxxxxxxxxxxxxxxxxx>
- Date: Wed Nov 29 12:59:17 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Edwin,
I won't go into details but mod_rewrite sounds like exactly what you need.
Go to
modules.apache.org and read up on it. (actually
http://www.apache.org/docs/mod/mod_rewrite.html )
..you basically write rules that can pretty much do whatever you want to do
with your
virtual hosts and its really easy..the rules are put in your httpd.conf and
you have
to restart httpd.conf everytime you modify it for the changes to go in
effect.
making a catchall domain is simple with mod_rewrite.. look at the practical
solutions section in the
link above.
..to prevent the gui from overwriting your changes you have to make the
changes to your
httpd.conf.master as well, since the gui uses the master for its templates.
hope that helps--
ryland
-----Original Message-----
From: Edwin Nouwen [mailto:edwin@xxxxxxxx]
Sent: Tuesday, November 28, 2000 7:58 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: [cobalt-users] Redirecting subdomains to different URL's
Hi there,
I've just started configuring my Cobalt RaQ4i server and have run into some
problems that I can't solve on my own..
I have browsed the archives of this list but can't seem to find the right
answers to my questions..
Before when I didn't have my own server and no DNS, I redirected all my
different domains (30+) and hosts (200+) using a pretty elaborate CGI script
that looked at the URL and redirected to different html pages, kinda like
this:
*.domain-one.com -> /domain1/index.html
host1.domain-two.com -> /domain2/index.html?par=johnny
pete.domain-two.com -> /domain2/index.html?par=peter
jane.domain-two.com -> /domain2/index.html?par=jane
*.domain-two.com -> /domain2/index.html
Problem (1)
This kind of script works perfectly, but most search engines hate it!
Resulting in the fact that none of the domains and hosts you redirect using
this method will get picked up by search engines..
Problem (2)
When I put this script in a virtual site (www.site1.com) and point different
domains and hosts to its IP number the server automaticly changes the URL to
the main host.domain of this virtual site (www.site1.com) and the script is
useless..
Note1: At the moment none of the domains are in my own DNS but I can make
them point to different IP numbers.
Note2: Above I've only shown you host1, pete and jane, but I have several
hundred hosts in the script.
Questions:
- Is it possible to stop the server from changing the URL to the main
host.domain?
- Is it possible to add a catchall webalias for hosts like you can for email
in a virtual site? (*.domain.com)
- Is it possible to put the above redirections in the httpd.conf?
- If I put the above redirections in the httpd.conf file, will the GUI mess
it up?
- If I put an include in the httpd.conf will it remain there or will the GUI
delete it?
- If I put an include in the httpd.conf do I have to restart the httpd
everytime I change the included file?
- Any other suggestions?
Kind regards,
Edwin Nouwen (edwin@xxxxxxxx)
---------------------------------------------------------------------
Intex Internet Services
Postbus 50 tel: 0493-351839 eml: info@xxxxxxxx
5750 AB Deurne fax: 0493-351712 web: www.intex.nl
---------------------------------------------------------------------
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users