tux name based virtual hosting question
"chris nuccio" <[email protected]>
| Newsgroups | gmane.network.tux |
|---|---|
| Message-ID | <[email protected]> |
hi, i have tux 2.0.26 set up and running (and apache as dynamic secondary server, albeit unused at the moment). only one site on it now. i want to add some more sites to this box, preferably sharing the same IP. i have searched google and redhat, now onto the forums.... i found http://people.redhat.com/mingo/TUX-patches/2.1-docs/virtual-hosting.html that is the closest i have found to what i need. however it doesn't have an example of syntax. how do i enter these tunable variables into /etc/sysctl.conf? for example: (from the above link) ===================snip================ There are three tunables that deal with virtual hosting: a.. virtual_server - Valid values are 0, 1, 2, or 3. b.. mass_hosting_hash - Valid values are 0, 1, 2, or 3. c.. strip_host_tail - Value must be an integer. These three tunables depend on each other, and the strip_host_tail tunable is only used if host based virtual serving is enabled. Otherwise, it is ignored. virtual_server If the value is set to 0, virtual hosting is disabled: http://www.example.com/a.html => $DOCROOT/a.html If the value is set to 1, host-based virtual hosting is enabled: http://www.some.site.com/a.html => $DOCROOT/some.site.com/a.ht?ml =========snip================== so first i make a user directory in the doc root (e.g. var/www/html/newsite) so in /etc/sysctl.conf would i put: virtual_server = 1 http://www.newsite.com/*.html => $DOCROOT/newsite.com/*.html or simply by virtue of using names in the entry does it assume mode 1? must i specify each html page as an entry (as in /a.html above) or will the wildcard (*)in the above work? and is virtual host set to (equal sign) 1 or (=>) or what? and don't i have to label the section "virtual host" (or #virtual_host)? i'd really just like to see an example of /etc/sysctl.conf from a working setup (fake names/ IP's of course) then i would feel safe trying it on the now live and critical server. i have no other box with tux/apache setup to test so i a bit leery. new to tux in june. thanks for any help. ========================================== Chris Nuccio IT Dept/ Web Dev. [email protected] www.ltpro.com Leo Ticheli Productions v. 205-930-0500 fx. 930-0505 ==================================================================================== Chris Nuccio IT Dept/ Web Dev. [email protected] www.ltpro.com Leo Ticheli Productions v. 205-930-0500 fx. 930-0505 ==========================================