Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd December 2008, 12:22
haimari1 haimari1 is offline
Junior Member
 
Join Date: Jan 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 4th December 2008, 23:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Take a look here: http://www.cherokee-project.com/doc/...l_servers.html
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 5th December 2008, 00:14
haimari1 haimari1 is offline
Junior Member
 
Join Date: Jan 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Thanks !

I saw it but i guess i didn't think it was possible...

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 !
Reply With Quote
Reply

Bookmarks

Tags
cherokee, server, virtual

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:27.


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