[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Viewing a virtual site before domain is resolving correct
- Subject: Re: [cobalt-developers] Viewing a virtual site before domain is resolving correct
- From: Peter Dickson <peter.dickson@xxxxxxxxxxx>
- Date: Thu Jun 7 22:10:02 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
Thanks for reply.
Have tried what you said but not understanding AliasMatch/ReWrite etc. I'm
not able to debug!
this is the VirtualHost section for the Cobalt host:
<VirtualHost xxx.xxx.xxx.xxx>
ServerName cobalthost.my.domain
ServerAdmin admin
DocumentRoot /home/sites/home/web
RewriteEngine on
RewriteCond %{HTTP_HOST} !^xxx.xxx.xxx.xxx(:80)?$
RewriteCond %{HTTP_HOST} !^cobalthost.my.domain(:80)?$
RewriteRule ^/(.*) http://cobalthost.my.domain/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
AliasMatch ^/site/([^/]+)(/(.*))? /home/sites/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
</VirtualHost>
with your line in as the second AliasMatch.
Can you advise what is incorrect? I'm trying to access the virtual site
with http://cobalthost.my.domain/site/www.newsite.com as per your email.
Should the AliasMatch have gone in VirtualHost section of the virtual site
I want to view?
TVM
P.
------------------------Original Message------------------------
-- Date: Friday, June 08, 2001 14:21:42 +0200
-- Sender: Taco Scargo - Sun Holland - Leiden <Taco.Scargo@xxxxxxx>
> If you are happy to edit your httpd.conf file, you can add the following
> line to any VirtualHost section, which enables browsing another site
> through that site, using an url like:
> http://www.cobalthost.com/site/www.newsite.com/
>
> AliasMatch ^/site/([^/]+)(/(.*))? /home/sites/$1/web/$3
>
> With regards,
>
> Taco Scargo
>
> Professional Services Manager, EMEA
>
> Sun Microsystems Tel. +31 (71) 565 7021
> Sun Cobalt Server Appliances taco.scargo@xxxxxxx
>
>
>
>> From: Peter Dickson <peter.dickson@xxxxxxxxxxx>
>> To: cobalt-developers@xxxxxxxxxxxxxxx
>> Cc: Chris Moules <chris.moules@xxxxxxxxxxx>
>> Subject: [cobalt-developers] Viewing a virtual site before domain is
>> resolving
> correct
>> Date: Fri, 08 Jun 2001 12:21:58 +0100
>>
>>
>> Can anyone tell me whether it's possible to view a virtual site on a
>> Cobalt RaQ4i before changes to DNS have propogated? DNS services are
>> provided by our ISP, not on our Cobalt.
>>
>> Basically, I want to be able to show work-in-progress to a customer but
>> their domain is not fully registered yet. Can I do it with
>> ip.address.of.cobalt/sites/site1/ etc? I've tried various combinations
>> but no success.
>>
>> Please reply to my personal email address as well as the list.
>>
>> TIA for your help.
>
----------------------End Original Message----------------------
peter.dickson@xxxxxxxxxxx
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kyros Solutions Ltd
110 The Custard Factory Gibb Street Birmingham B9 4AA
T: 0121 683 1330 W: <http://www.kyros.co.uk>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ passionate about helping people use information technology effectively ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fingerprint: 02DB 023B C11B 412C D015 0AF3 F074 8590 72D2 BC98
Please let me know if the attached digital signature makes it
difficult for you to read this email
-----------------------------------------------------------------------
peter.dickson@xxxxxxxxxxx
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kyros Solutions Ltd
110 The Custard Factory Gibb Street Birmingham B9 4AA
T: 0121 683 1330 W: <http://www.kyros.co.uk>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ passionate about helping people use information technology effectively ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fingerprint: 02DB 023B C11B 412C D015 0AF3 F074 8590 72D2 BC98
Please let me know if the attached digital signature makes it
difficult for you to read this email
-----------------------------------------------------------------------
peter.dickson@xxxxxxxxxxx
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kyros Solutions Ltd
110 The Custard Factory Gibb Street Birmingham B9 4AA
T: 0121 683 1330 W: <http://www.kyros.co.uk>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ passionate about helping people use information technology effectively ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fingerprint: 02DB 023B C11B 412C D015 0AF3 F074 8590 72D2 BC98