Cherokee and Virtual Ip (Virtual Server)

Discussion in 'Server Operation' started by haimari1, Dec 3, 2008.

  1. haimari1

    haimari1 New Member

    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:
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

  3. haimari1

    haimari1 New Member

    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
     

Share This Page