Stuart Fellowes wrote:
On the off chance someone might understand my dilemma I’m posting this:
Trying to set up Apache with a VirtualHost to pass requests to Mongrel
mod_proxy. Server is running an earlier version of RedHat 3.x maybe ?
Apache v.2.0 (right no mod_proxy_balancer)
I’m not a sys admin so kind of flying by the seat of my pants, though I
have the Mongrel deployment book.
The biggest problem right now is knowing where to put the VirtualHost.
rails app, while a sub folder under /var/www/html/railsapp
is configured like this:
I’ve seen a number of these virtual/site# locations. (i.e virtual/site1,
Yet I’ve looked in various httpd.conf files and find no configuration
Kind of confusing, and I know my question is just as confusing but if
has any insight I’d appreciate it.
The virtual hosts are probably being loaded via an include statement in
the httpd.conf, this allows you to easily manage all of the sites
individually and in an easy to manage structure so you are not directly
editing the httpd.conf. We run the same way and it really hasn’t been a
problem for low traffic sites.
Each site has it’s own conf file, for example site.conf
php_value upload_max_filesize 32M
php_value post_max_size 32M
php_value memory_limit 32M
php_value max_input_time 180
php_value max_execution_time 180
Alias /pic/ /home/sites/some/directory
php_flag register_globals off
php_flag allow_call_time_pass_reference on
php_flag magic_quotes_gpc off
php_value error_reporting 2047
and in your httpd.conf have a line like:
This will load every .conf file in /home/sites/apache and bingo, there
are your vhosts all tidy.
Hope this helps