HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Cherokee and Virtual Ip (Virtual Server) (http://www.howtoforge.com/forums/showthread.php?t=29181)

haimari1 3rd December 2008 13:22

Cherokee and Virtual Ip (Virtual Server)
 
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...):

Code:

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/...l_servers.html

haimari1 5th December 2008 01:14

Thanks !
 
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


All times are GMT +2. The time now is 17:22.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.