PDA

View Full Version : Cherokee and Virtual Ip (Virtual Server)


haimari1
3rd December 2008, 13:22
Hi all,

I have Cherokee Version: 0.11.2 compiled from source on Debian Etch and working, with php5 - compiled with php5-cgi ( FastCGI enabled)

I am now trying to transfer all my old websites (installed on Apache2) to the new Cherokee.

on the Apache2 i have about 10 virtual servers configured with "Virtual-Ip" (each site has it's own unique real ip address)
here is the relevant part from my httpd.conf (not the real addresses...):

NameVirtualHost 1.1.1.1
NameVirtualHost 1.1.1.2

<VirtualHost 1.1.1.1>

DocumentRoot /var/www/site1
ServerName site1.com
<Directory /var/www/site/site1>
Options +FollowSymLinks MultiViews +Includes
AllowOverride ALL
Order allow,deny
allow from all
</Directory>

</VirtualHost>

<VirtualHost 1.1.1.1>

DocumentRoot /var/www/site1
ServerName www.site1.com
<Directory /var/www/site/site1>
Options +FollowSymLinks MultiViews +Includes
AllowOverride ALL
Order allow,deny
allow from all
</Directory>

</VirtualHost>

<VirtualHost 1.1.1.2>

DocumentRoot /var/www/site2
ServerName site2.com
<Directory /var/www/site/site2>
Options +FollowSymLinks MultiViews +Includes
AllowOverride ALL
Order allow,deny
allow from all
</Directory>

</VirtualHost>

<VirtualHost 1.1.1.2>

DocumentRoot /var/www/site2
ServerName www.site2.com
<Directory /var/www/site/site2>
Options +FollowSymLinks MultiViews +Includes
AllowOverride ALL
Order allow,deny
allow from all
</Directory>

</VirtualHost>



how can i configure this on Cherokee. i looked at the documentation but i don't see anything related to "Virtual-Ip"

help will be much appreciated. :confused:

falko
5th December 2008, 00:33
Take a look here: http://www.cherokee-project.com/doc/config_virtual_servers.html

haimari1
5th December 2008, 01:14
I saw it but i guess i didn't think it was possible...:eek:

There is no need to set any ip addresses.
Cherokee will redirect the request (as long as it set by DNS with the right ip address ) to the right document root of the domain that came with the http request (as long as it is set as one of the domains of the virtual server)

it works !:D