IRC logs for #aegir, 2012-06-24 (GMT)

2012-06-23
2012-06-25
TimeNickMessage
[10:03:14]<mrfelton>omega8cc: Whats HTTP_X_LOCAL_PROXY? Is this something new? Looks like it has repaved HTTP_X_FORWARDED_PROTO ?
[10:06:51]<mrfelton>As far as I can make out, there seems to be 3 different ways of detecting https. HTTP_X_LOCAL_PROXY, HTTP_X_FORWARDED_PROTO and HTTPS
[10:07:10]<mrfelton>Where you check for $request_type, would it make sense to check all three of these possibilities?
[10:07:55]<mrfelton>One one of our sites, we have an additional reverse proxy in order serve one site from what looks to be a subdirectory of another
[10:08:10]<mrfelton>we are also using aegis's own SSL support
[10:08:36]<mrfelton>and we are getting the https switch set if different variables depending on the specifics of the setup
[10:08:46]<mrfelton>so $request_type = ($_SERVER['HTTPS'] == 'on') ? 'SSL' : 'NONSSL'; doesn't work in all cases
[10:09:27]<mrfelton>no does $request_type = ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') ? 'SSL' : 'NONSSL';
[10:11:25]<mrfelton>omega8cc: something like this might be more robust:?
[10:11:26]<mrfelton>$request_type = ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || $_SERVER['HTTP_X_LOCAL_PROXY'] == 'https' || $_SERVER['HTTPS'] == 'on') ? 'SSL' : 'NONSSL';
[10:16:46]<omega8cc>mrfelton: we use this to detect our standard local SSL proxy, so we have switched to custom header to avoid issues when any other remote proxy sends this header (like cloudflare) which can even disable speed booster effectively, but you can use custom logic if you need it
[10:17:42]<omega8cc>we *don't* want to check for HTTP_X_FORWARDED_PROTO there, by design
[10:19:40]<mrfelton>The design being, because if you do that it can interfere with other proxies
[10:19:46]<mrfelton>I see, ok then that makes sense
[10:20:13]<mrfelton>I guess I'll just copy out the whole micro caching config part into our override file, so that we can adjust the way it detects ssl
[10:20:29]<omega8cc>but yeah, this may not work as expected when you are using built-in HTTPS etc, not sure
[10:21:39]<mrfelton>omega8cc: it doesn't, because if you do that, you get $_SERVER['https'] = 'on', and this is not checked so special configs for microcaching under ssl do not work
[10:22:06]<mrfelton>^ that is, when you use aegis's built in SSL support
[10:23:15]<omega8cc>yeah, but then, the difference doesn't really matter, I think, since the standard microcaching uses really short TTL
[10:27:24]<mrfelton>omega8cc: it also breaks the $base_url setting, which is also based on HTTP_X_FORWARDED_PROTO alone
[10:28:28]<mrfelton>The SSL docs on the barracuda page suggest that the ssl proxy is to be used when you want multiple IP's. It doesn't say you should never use aegis's SSL and only ever use the proxy method. I think
[10:29:53]<omega8cc>I'm going offline, could you open some issues in the queue? :)
[10:30:43]<mrfelton>sure, no problem
[10:31:41]<omega8cc>thanks
[10:39:41]<omega8cc>mrfelton: good ideas, so please open a few issues, so we don't lost them, have a great weekend!
[10:40:52]* halcyonCorsair has quit (Remote host closed the connection)
[10:43:39]* omega8cc has quit (Quit: Cheers! It's Time for Offline Reality)
[10:49:53]* Pomliane has quit (Quit: Bye!)
[10:57:20]* gboudrias has quit (Quit: Leaving.)
[11:01:53]* gboudrias has joined #aegir
[11:11:05]* mrfelton has quit (Quit: mrfelton)
[11:29:20]* bgm has joined #aegir
[11:34:10]* patcon has joined #aegir
[12:11:48]* patcon has quit (Quit: patcon)
[12:38:22]* gusaus has quit (Quit: gusaus)
[14:20:10]* EclipseGc has quit (Quit: EclipseGc)
[14:57:21]* Blegh has quit (Ping timeout: 252 seconds)
[14:59:28]* Blegh has joined #aegir
[15:21:37]* gboudrias has quit (Quit: Leaving.)
[16:51:10]* kylemathews has quit (Ping timeout: 260 seconds)
[18:09:08]* mrfelton has joined #aegir
[18:52:34]* AquaticDisorder has quit (Remote host closed the connection)
[19:36:11]* rv0 has joined #aegir
[19:59:53]* rv0 has quit (Quit: rv0)
[20:07:05]* rv0 has joined #aegir
[20:10:23]* rv0 has quit (Client Quit)
[20:12:22]* mig5 has quit (Ping timeout: 272 seconds)
[20:12:56]* mig5 has joined #aegir
[20:21:43]* penyaskito has quit (Quit: Saliendo)
[20:36:53]* ivanjaros has joined #aegir
[22:50:06]* Egyptian[Laptop] has joined #aegir
[23:36:52]* EclipseGc has joined #aegir
[00:58:34]* ivanjaros has quit (Read error: Connection reset by peer)
[01:07:41]* penyaskito has joined #aegir
[01:50:56]* ivanjaros has joined #aegir
[01:56:57]* kylemathews has joined #aegir
[02:47:00]* fatguylaughing has joined #aegir
[03:00:23]<hefring>community => You will need invoke drush from a more functional Drupal environment to run this command... => http://community.aegirproject.org/discuss/you-will-need-invoke-drush-mor...
[03:08:54]* patcon has joined #aegir
[03:25:07]* wamilton has joined #aegir
[03:26:25]* patcon has quit (Ping timeout: 260 seconds)
[03:46:46]* obrienmd has joined #aegir
[04:04:44]* lukasvonblarer_ has joined #aegir
[04:08:38]* lukasvonblarer has quit (Ping timeout: 245 seconds)
[04:08:39]* lukasvonblarer_ is now known as lukasvonblarer
[04:14:53]* lsolesen1 has joined #aegir
[04:16:02]<lsolesen1>mig5: I was trying to get aegir easily to build some of the distros that are hosted on d.o. Usually I just copy the url to e.g. https://raw.github.com/vih/vih.dk-deploy/master/vih_dk.build and then my disto is build automaticlally. However, that is not possible with the d.o. distributions. Any workaround?
[04:23:27]<lsolesen1>EclipseGc: ^^
[04:44:33]<lsolesen1>Pointing to e.g. http://drupalcode.org/project/commerce_kickstart.git/blob/refs/heads/7.x... does not build commerce kickstart.
[04:45:58]* Circlefusion has quit (Quit: Leaving)
[04:52:56]* Circlefusion has joined #aegir
[05:01:16]* banghouse is now known as banghouseAFK
[05:21:31]* lsolesen has joined #aegir
[05:22:17]* lsolesen has left #aegir ()
[05:22:28]* lsolesen has joined #aegir
[05:39:40]* lsolesen2 has joined #aegir
[05:39:40]* lsolesen1 has quit (Read error: Connection reset by peer)
[06:05:32]<lsolesen>mrfelton: That did not work.
[06:05:59]<mrfelton>lsolesen: what about one of the other build files?
[06:06:36]* patcon has joined #aegir
[06:07:37]<mrfelton>lsolesen: I think the problem is because of the include file
[06:07:46]<mrfelton>includes[] = drupal-org-core.make
[06:07:50]<mrfelton>references a local file
[06:08:17]<lsolesen>mrfelton: yes it is. But that is the official way to build projects on d.o. so it will probably not be changed.
[06:08:38]<lsolesen>But guess that aegir has not made an answer to this yet?
[06:11:03]<mrfelton>lsolesen: It doesn't look like it
[06:11:12]<mrfelton>Aegir needs a stb make file
[06:11:40]<lsolesen>mrfelton: stb?
[06:12:47]<mrfelton>lsolesen: A make file that tells it where to actually get the various components. Not one that assumes that include files are in a a local directory
[06:14:21]<mrfelton>lsolesen: If you look at the build files in Barracuda, you'll see what I mean: http://drupalcode.org/project/barracuda.git/tree/HEAD:/aegir/makefiles
[06:14:32]<mrfelton>They are not the same as those hosted on drupal.org
[06:14:51]<lsolesen>mrfelton: ah, ok. They have created their own.
[06:14:58]<mrfelton>Every project in the stub has a remote reference
[06:15:06]<lsolesen>I need to get barracuda installed then.
[06:15:07]<mrfelton>it's not really their own as such. Its a standard makefile
[06:15:17]<lsolesen>oki.
[06:15:18]<mrfelton>It's just not the exact format the drupal.org uses
[06:15:25]<mrfelton>I don't know why
[06:16:10]<mrfelton>Well, the reason is obvious. Because it needs to fetch stuff. You are only pointing aegir at a single makefile, not at a directory or repository
[06:16:38]<mrfelton>Which must be a different process to how drupal.org infrastructure works
[06:17:21]<mrfelton>lsolesen: It should be pretty easy to create an aegir compatible stub for any distro that you want to make though
[06:19:17]<lsolesen>mrfelton: yeah. It should still be possible to create the project directly, I think.
[06:19:49]<lsolesen>by the way, in barracuda, you are using mariadb, right, and not mysql.?
[06:20:17]<mrfelton>lsolesen: correct
[06:30:09]* banghouseAFK is now known as banghouse
[06:45:41]* Bidik is now known as bidik
[06:48:02]* bidik is now known as Bidik
[06:57:38]* Bidik is now known as bidik
[07:02:19]* AquaticDisorder has joined #aegir
[07:02:27]* patcon has quit (Quit: patcon)
[07:04:57]* grobot has joined #aegir
[07:14:09]* bidik is now known as Bidik
[07:15:25]* rv0 has joined #aegir
[07:48:15]* wroxbox has quit (Remote host closed the connection)
[07:49:36]* rv0 has quit (Quit: rv0)
[08:08:54]* wamilton has quit (Ping timeout: 245 seconds)
[08:09:05]* ivanjaros has quit (Read error: Connection reset by peer)
[08:28:14]* lsolesen has quit (Quit: Leaving.)
[08:40:58]* lukasvonblarer has quit (Quit: lukasvonblarer)
[08:42:56]* Egyptian[Laptop] has quit (Remote host closed the connection)
[08:58:51]* wamilton has joined #aegir
[09:01:33]* patcon has joined #aegir
[09:08:52]* banghouse is now known as banghouseAFK
[09:09:35]* wamilton has quit (Ping timeout: 255 seconds)
[09:16:22]* Deciphered has joined #aegir
[09:16:23]* Deciphered has quit (Changing host)
[09:16:23]* Deciphered has joined #aegir
[09:23:03]* Egyptian[Laptop] has joined #aegir
[09:25:43]* grobot has quit (Ping timeout: 244 seconds)
[09:26:22]* lsolesen has joined #aegir
[09:26:22]* lsolesen2 has quit (Read error: Connection reset by peer)
[09:27:08]* mrfelton has quit (Quit: mrfelton)
[09:40:12]* AquaticDisorder has quit (Remote host closed the connection)
[09:44:00]* obrienmd has quit (Quit: Leaving.)
[09:57:18]* obrienmd has joined #aegir
[09:59:17]* Egyptian[Laptop] has quit (Remote host closed the connection)