VirtualHost Examples. This document attempts to answer the commonly-asked questions about setting up virtual hosts.
These scenarios are those involving multiple web sites running on a single server, via name-based or IP-based virtual hosts. Running several name-based web sites on a single IP address. Your server has a single IP address, and multiple aliases (CNAMES) point to this machine in DNS. You want to run a web server for www.example.com and www.example.org on this machine. Note Creating virtual host configurations on your Apache server does not magically cause DNS entries to be created for those host names. . # Ensure that Apache listens on port 80Listen 80<VirtualHost *:80> DocumentRoot /www/example1 ServerName www.example.com # Other directives here</VirtualHost><VirtualHost *:80> DocumentRoot /www/example2 ServerName www.example.org # Other directives here</VirtualHost> The asterisks match all addresses, so the main server serves no requests.
Name-based hosts on more than one IP address. Note: Phusion Passenger users guide. 2.1.
Synopsis Because Phusion Passenger is designed to run in a wide variety of operating systems and configurations, there are multiple ways to install it. Most users — especially first-time users — will prefer OS-specific installation instructions. These are not only the easiest, but also allow Phusion Passenger to integrate into the operating system in the best way possible. Other users should consult the generic installation instructions. The steps for upgrading or downgrading Phusion Passenger is almost the same as the steps for installing. 2.3. We provide an official Phusion Passenger APT repository. If you use these packages to install Phusion Passenger then you do not need to run passenger-install-apache2-module or passenger-install-nginx-module.
Packages are available for the x86 and x86_64 architectures. How to install configure Apache, MySQL and PHP on Mac OS X 10.7 Lion. My Apache Configuration for Ruby on Rails with Passenger. Posted by smoe on 04/18/2009 One of the great things about using Passenger rather than Mongrel is the simple Apache configuration that gets you started. You don’t need to manage ports, decide how many processes an application is going to need, or edit a second configuration file for the application servers. At this time passenger 2.2.0 is the newest release, and it works great with mod_rewrite and every other Apache module I use.
This is the virtual host entry from the Phusion Passenger Apache Users Guide ServerName www.mycook.com DocumentRoot /webapps/mycook/public It couldn’t get much simpler and it could be all you need, but my development environment requires a bit more. 127.0.0.1 localhost newsite.local oldsite.local Then you can see the sites in development on your local machine with Another great thing about Passenger is that it automatically runs as the user that owns the site. I love working in Debian. That is really all it takes to run a development server.