Index: [Article Count Order] [Thread]

Date:  Thu, 10 Aug 2006 21:58:45 +0200
From:  Dennis <dennis (at mark) mixfans.org>
Subject:  [coba-e:06313] Re: BQ default web page
To:  coba-e (at mark) bluequartz.org
Message-Id:  <44DB8FF5.8010909 (at mark) mixfans.org>
In-Reply-To:  <F07DD4D0940AFF41A207BE85479D2AFF181459 (at mark) server.mainline.local>
References:  <F07DD4D0940AFF41A207BE85479D2AFF181459 (at mark) server.mainline.local>
X-Mail-Count: 06313

Ah.. Internal ..
Yeah .. that's the trick .. I did lot's of testing before it served my needs

I will give you the quick and dirty tip myself. the Pro's can and may 
comment ;-)

1. Make sure you use your EXTERNAL IP address when configuring the 
sites  through admin interface
2. Make sure you have shell access
3. go to /etc/httpd/conf/vhost
4. open the 1st virtual host called site1

here you will find following

# owned by VirtualHost
# rename NameVirtual host  to ie. your internal IP
NameVirtualHost 192.168.1.100   ; 

# rename VirtualHost to your Internal IP
<VirtualHost 192.168.1.100>

#  Keep the settings in the rewrite engine as they are ..
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^213.84.24.1234(:80)?$
RewriteCond %{HTTP_HOST}                !^www.mixfans.org(:80)?$ [NC]
RewriteRule ^/(.*)                      http://www.mixfans.org/$1 [L,R]

Save the site1 file and go to your 2nd and other virtual sites

for ALL other virtual sites you have to outcomment the NameVirtual Host

Site2 just outcomment the NameVirtual Host
# NameVirtualHost 213.84.24.1234:80

And change the VirtualHost IP to the name you gave it (of course it 
COULD be possible that you can leave it default, but I always use the 
Internal IP of the server)

Than save the file again and restart httpd with
/etc/rc.d/init.d/httpd restart

And it should be working ....
that does the trick for me ..

and of course when using Wintendo and behind the router with NAT fix 
your HOST file of your wintendo machine


Tjsak!
Dennis Slagers
www.aroundmyroom.com
mixfreaker for life.



Colin Jack wrote:
> Internal .... we have a firewall and use nat. 
>
>   
>> -----Original Message-----
>> From: Dennis [mailto:dennis (at mark) mixfans.org] 
>> Sent: 10 August 2006 10:05
>> To: coba-e (at mark) bluequartz.org
>> Subject: [coba-e:06307] Re: BQ default web page
>>
>> internal IP or External IP ?
>> I saw wierd things happen when using external IP but in fact 
>> the box was / is behind router ..
>>
>>
>> Colin Jack wrote:
>>     
>>> Nope :)
>>>
>>> This is from my httpd.conf
>>>
>>> #</VirtualHost>
>>> Include /etc/httpd/conf/vhosts/site1
>>> Include /etc/httpd/conf/vhosts/site2
>>>
>>> Put the IP in and I get vsite133
>>>
>>> ???
>>>
>>> Colin 
>>>   
>>>   
>>>       
>>     
>
>
>
>