[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Virtual sites sharing IP address
- Subject: Re: [cobalt-developers] Virtual sites sharing IP address
- From: Jerry Pape <jplist@xxxxxxxx>
- Date: Thu Aug 31 13:10:49 2000
If your objective is to allow the developer the ability to access the
web site prior to the time you re-point the root-level DNS (Network
Solutions, Register.com, etc), the easiest thing to do is to modify
httpd.conf like so:
(obviously xx.xx.xx.xx and www.somedomain.com should be valid and
replaced by whatever they are on your server)
NameVirtualHost xx.xx.xx.xx
##############################
<VirtualHost xx.xx.xx.xx>
ServerName www.somedomain.com
ServerAdmin admin
# To facilitate migration redirect trick
DocumentRoot /home/sites
RewriteEngine on
RewriteCond %{HTTP_HOST} !^xx.xx.xx.xx(:80)?$
RewriteCond %{HTTP_HOST} !^www.somedomain.com(:80)?$
RewriteRule ^/(.*) http://www.somedomain.com/$1 [L,R]
RewriteOptions inherit
# to facilitate access to web dirs only via migration redirect trick
AliasMatch ^/(www[^/]+)(/(.*))? /home/sites/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
<Directory /home/sites>
Options -Indexes
</Directory>
</VirtualHost>
JP
Hi, guru's out there:
We have a problem situation with a virtual site on our RAQ3 server
which I best can describe as follows:
1 - The virtual site is defined, and the customer has already
started to work with some web pagres there
2 - Changes in the nameservers has not yet been done, and points to
wrong addresses
So far, it's all logical. But when adding new virtual sites, strange
things happens:
3 - A new site is defined, defined with A-record on our nameservers
pointing to the same, shared IP address as the one mention above.
This site works nice.
4 - two other domains shall be routed to the site described above
(3). On the name servers, these domains has CNAME records that
points to the domain (3). When accessed from the browser, connection
to domain from (1) is attempted, and fails (since the site is not
correctly defined in any nameservers).
So, whats going wrong here? Must Virtual Sites be defined in a
nameserver before a site can be created when sharing IPaddress?
Per Arne Ensby
"Anyone with a mind for business can succeed in e-business"
Business-to-Web AS
C.J.Hambros plass 2C, 0164 OSLO, NORWAY
http://b2w.com
Phone: +47 22 99 60 99
Mobile: +47 99 58 62 22
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers
--
--------------
| Jerry Pape
| jpape@xxxxxxxx
--------------