• support[@]kurinchilion.com
  • +1 (888) 666-4252

Ubuntu Hardy Heron, CakePHP Setting in Virtual Host Environment

Aug 05, 2009 - by kurinchilamp / / Post Comment
If you are to setup CakePHP in a virtual hosting environment, we need to ensure that the DocumentRoot is setup correctly. Based on the experience I have had I thought to list down the virtual host setting and cakephp .htaccess setting files. root@myserver:/etc/apache2/conf.d# cat vhosts.conf NameVirtualHost 192.168.1.100:80 <VirtualHost 192.168.1.100:80> ServerName cakeapp DocumentRoot /var/www/cakeapp </VirtualHost> (Note that there is no ending forward slash after /var/www/cakeapp. If there had been one, it might cause a problem if the /var/www/cakeapp/app/config/routes.php is not configured correctly indicating a never ending loop in resolving domain name) root@myserver:/etc/apache2/conf.d# cat /var/www/cakeapp/.htaccess <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] </IfModule>
Continue Reading

Ubuntu, Apache: Virtual Hosting

Aug 04, 2009 - by kurinchilamp / / Post Comment
Virtual Hosting in Ubuntu Hardy Heron: Case Example Consider the case of two domain names mysite1 and site2 to be served on IP Address 192.168.1.100 (port 80) Before proceeding let us look at how resolv.conf and hosts file are set up ... $ cat /etc/resolv.conf search kurinchilion.com nameserver 192.168.1.100 $ cat /etc/hosts 127.0.0.1 localhost 192.168.1.100 myserver.kurinchilion.com myserver # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts (more…)
Continue Reading

Apache, Ubuntu, CentOS: Virtual Host Configuration

Aug 03, 2009 - by kurinchilamp / / Post Comment
What is Virtual Hosting? Virtual Hosting is a technique by which web servers can serve more than one domain name on the same server. It can also be a variation of serving different sites on the same IP but on different ports. (more…)
Continue Reading

TECHNOLOGY DEV STACK

Following are some of the technologies that we use to build and maintain solutions for our clients.