From: barry <sla...@i1...> - 2001-10-04 00:01:00
|
At least 2 of us have had trouble getting the Virtual Server stuff configured during install. As one of them, I worked around it by not using a virtual server during the early part of my site development - but now I am nearing the end and I needed to fix that before deployment. I thought I would share some tips and results now that it seems to be working (haven't fully tested it yet, so both ymmv and mmmv) Surely a lot of what follows can be tweaked further, but hear is something at least for the record.... My virtual site machine has IP address 192.168.1.123. The goal is to have a virtual host called vslash. In the httpd.conf file: Outside of the virtual host section I have a line: "NameVirtualHost *" This turns on Name based virtual serving for what I guess are all the IP addresses of the machine. In this case, that means 192.168.1.123. This is my virtual host section, located at the end of the file (although I don't think location matters). This is the slash server: #----------------------------------------------------------------------------- <VirtualHost 192.168.1.123> ServerRoot /usr/local/slash/site/slash DocumentRoot /usr/local/slash/site/slash/htdocs ServerName vslash <Directory /usr/local/slash/site/slash/htdocs> Options FollowSymLinks ExecCGI Includes Indexes AllowOverride None Order allow,deny Allow from all </Directory> ErrorLog logs/vslash_error_log CustomLog logs/vslash_access_log common Include /usr/local/slash/httpd/vslash.conf PerlSetupEnv On PerlSetEnv TZ GMT SlashVirtualUser root PerlAccessHandler Slash::Apache::User PerlLogHandler Slash::Apache::Log # this directive will redirect non-logged-in users to # index.shtml if they request the home page; turn it # on to help increase performance #PerlTransHandler Slash::Apache::IndexHandler # this directive will enable you to display user's pages # with /~username #PerlTransHandler Slash::Apache::User::userdir_handler ErrorDocument 404 /404.pl AddType text/xml .rdf AddType text/xml .rss AddType text/xml .xml AddType text/xml .wml AddType text/html .shtml AddHandler server-parsed .shtml AddType text/html .inc AddHandler server-parsed .inc # end of updates from slash.conf </VirtualHost> #----------------------------------------------------------------------------- Note that there is an include line :" Include /usr/local/slash/httpd/vslash.conf". the contents of that file are: # this is all the mod perl specific stuff that makes # slash the root handler for the site # ... you might want to check to make sure these are not already # defined in your main httpd.conf, if you have trouble AddHandler perl-script .pl PerlHandler Apache::Registry # add in modules for compiling into each process PerlModule Slash PerlModule Slash::Apache PerlModule Slash::Apache::User PerlModule Slash::Apache::Log PerlModule Slash::Display::Plugin # used in a couple of .pl files PerlModule Image::Size # add other, or comment out, DB modules here PerlModule Slash::DB::MySQL #PerlModule Slash::DB::PostgreSQL # add or comment out plugin modules PerlModule Slash::Ladybug PerlModule Slash::Journal PerlModule Slash::Search LimitRequestBody 75000 #-------------------------------------------------------------- That seems to be it. I made a few other tweaks to httpd.conf, but they aren't related directly to slash operation. If this is useful, someone can add it to the INSTALL or faq file if they want. I can't really support it other than here though. Barry |