| jmesquita | Otherwise, trhow it on a specific Zope URL (and get out of the way if possible) DrBacchus, See, this is what my network tool does Its a captive portal |
| megaspaz | i'd have to say, doing that for all your vhosts would actually suck |
| DrBacchus | I have never heard that term before. |
| Jared555 | is it possible to have multiple copies of apache write to the same log files? |
| megaspaz | yeah |
| DrBacchus | Yes, it is. |
| megaspaz | just use a global customlog, errorlog, transferlog, and/or transportlog |
| jmesquita | Ok, DrBacchus let me try again then 1) Client browser on the LAN points to www.apple.com 2) My network gateway checks for his authentication |
| Jared555 | megaspaz, all you have to do is point them to the same log files? this will not cause errors? |
| megaspaz | Jared555: shouldn't |
| DrBacchus | I'm really asking for specifics, not generalities. We're trying to write formulas here. |
| jmesquita | 3) Does not find it and rewrites the TCP destination IP to my apache machine |
| megaspaz | Jared555: or you can use 1 logfile location in the global server scope |
| DrBacchus | For example, you can do: RewriteCond %{HTTP_HOST} !(www.one.com|www.two.com|three.com) [NE] |
| megaspaz | customlog context |
| fajita | CustomLog may be used in the following contexts: server config, virtual host |
| Jared555 | and how does that work? |
| DrBacchus | and then put your rewriterule after that. |
| jmesquita | 4) My apache figures that this is not to any of its vhosts and rewrites the URL to Zope |
| megaspaz | Jared555: you just do something like CustomLog logs/blah.log not in any directive blocks |
| jmesquita | 5) Zope asks for a password and username |
| DrBacchus | Ok, so you've add all the details except for the one that I actually need. :-) |
| jmesquita | 6) Authenticates the user and provision the network gateway to let him browse the web |
| DrBacchus | The bit that I'm trying to understand is how we determine "is not to any of its vhosts" |
| jmesquita | DrBacchus, and that is? |
| megaspaz | Jared555: and make sure your vhosts don't define any log file locations |
| DrBacchus | Do you have a comprehensive list of those vhosts somewhere that you expect to check against? Is it just supposed to magically know? |
| jmesquita | Well, that where apache's detail come in |
| DrBacchus | And, most importantly, why wouldn't you just create a new default vhost that gets the requests automaticaly, rather than trying to do something with mod_rewrite>? Just create a new vhost, list it first, and you're done. I'm not sure where mod_rewrite comes into this, unless I'm hugely missing something. |
| jmesquita | Is it possible to check on each vhost configuration to with URL it is matching and if none is matched, rewrite the URL? |
| DrBacchus | Well, yes and no. No, mod_rewrite can't so that. Yes, that's a standard feature of virtual hosts, and it's called "default virtual host" |