IRC log of #schooltool for Friday, 2010-11-19

*** menesis has quit IRC01:11
*** replaceafill has joined #schooltool02:43
*** ignas has joined #schooltool03:48
*** ignas has quit IRC04:04
*** aks has joined #schooltool05:22
*** krishnagiri has joined #schooltool05:22
aksth1a, replaceafill: hello05:23
th1aaks:  Hi!05:24
replaceafillhello aks05:24
aksreplaceafill: redirecting in the vhost configuration does not work well, krishnagiri had been testing it05:25
akskrishnagiri: ^^^, can you please explain about the problem?05:25
krishnagirithe rewrite rule works for schooltool but it effect other site hosted on the same server. it opens schooltool while browsing other sites as well05:31
replaceafillif you turn off the rewrite rule for schooltool you can access the other sites correctly?05:32
krishnagirihere's the rule we r using:  RewriteRule ^/(.*) http://localhost:7080/++vh++http:schooltool:80/++/$1 [P,L]05:32
krishnagiriyes05:32
replaceafilland the ServerName is schooltool, right?05:33
krishnagiriyes05:33
replaceafillhave you tried Proxy instead of Rewrite05:34
replaceafilli mean the proxy module instead of the rewrite module05:34
replaceafillusing ProxyPass directives?05:34
krishnagirino05:34
replaceafilljust the rule seems fine to me05:35
replaceafillcan you share the whole config file?05:35
krishnagiriok05:35
krishnagirischooltool.conf :: http://fpaste.org/YPhf/05:37
th1aaks:  How's the Fedora 9 packaging coming?05:38
aksth1a: we're trying to fix a problem with the schooltool virtualhost configuration, after that I'll repackage and test it05:38
aksth1a: then I'll release them, ETA 2 days05:38
th1aOK.  Thanks.05:39
* replaceafill is comparing krishnagiri's file with one of his instances05:43
replaceafillunfortunately my apaches have only one config file :(05:43
replaceafillkrishnagiri, do you have schooltool as an alias in your server's /etc/hosts file?05:48
krishnagirino05:48
replaceafillcan you share that file?05:49
krishnagiriok05:49
krishnagiri27.0.0.1               schoolserver.test.system.olenepal.org localhost.localdomain localhost05:49
krishnagiri::1                     localhost6.localdomain6 localhost605:49
replaceafillServerName fully-qualified-domain-name[:port]05:52
replaceafillthe fully-qualified-domain-name is the one that makes me wonder in this case05:52
krishnagiriwhat should i try then?06:00
replaceafilli'm trying to set up apache like you have it, with no domains06:01
krishnagirioh ok06:02
*** th1a has quit IRC06:02
replaceafillkrishnagiri, hhmm interesting:06:11
replaceafillRestarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName06:11
replaceafill ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName06:11
replaceafill.06:11
aksreplaceafill: that warning msg is okay06:12
replaceafilli think it's not a problem with the rewrite rule06:14
replaceafillobviously :P06:14
replaceafillif you set: RewriteRule /(.*) http://www.google.com06:15
replaceafillyou should be redirected to google for any of your sites, right?06:15
replaceafillif so, it's a problem with the virtual host configuration06:15
krishnagirilet me check06:16
replaceafilland i suspect of the ServerName directive06:16
replaceafillor something related06:16
replaceafillthat doesnt allow apache differentiate between sites06:17
*** th1a has joined #schooltool06:18
krishnagiriyes it redirects all our site to google06:18
*** aelkner has quit IRC06:25
replaceafillkrishnagiri, can you paste:06:37
replaceafillls -altr /etc/apache/sites-enabled06:37
replaceafilli have to vhosts06:38
replaceafilldefault and other06:38
aksreplaceafill: fedora does not has a sites-enabled and sites-available files06:38
replaceafill:|06:38
replaceafilleverything is on by default?06:38
aksreplaceafill: fedora based apaches parses every *.conf file in /etc/httpd/conf.d/ directory06:38
replaceafillaks, does it sort them?06:39
replaceafillalphabetically?06:39
aksreplaceafill: I'm not sure abt that06:39
replaceafillthe thing is that i have a similar behaviour to yours, when i change the order of my vhosts06:40
aksreplaceafill: i see06:40
replaceafillbut setting servername in every virtualhost fixes it...06:43
replaceafillServerName localhost06:43
replaceafillServerName teacher06:43
replaceafillServerName student06:43
replaceafilllocalhost -> default apache config06:44
replaceafillteacher and student -> with redirects to google and schooltool.org06:44
replaceafilland with "127.0.0.1localhost student teacher" in my /etc/hosts file06:44
*** aelkner has joined #schooltool06:50
th1aGood night and good luck gentlemen!06:53
*** th1a has quit IRC06:53
krishnagirireplaceafill, still not working06:57
replaceafillkrishnagiri, how many vhosts do you have in your server?06:58
krishnagiriits the only virtual host07:00
replaceafill!?!?07:00
replaceafillyou mean apache only serves this vhost?07:01
aksreplaceafill: our configurations has one dedicated vhost entry for servername "schooltool" and others are normal alias and <Directory> directives07:02
* replaceafill is reading http://doc.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/Deployment_Guide/s1-apache-virtualhosts.html07:08
replaceafillto get familiar with fedora :)07:08
aksreplaceafill: :)07:08
replaceafillaks, your aliases and <Directory> directives live in /etc/httpd/conf/httpd.conf?07:10
replaceafillor is there any other file for that?07:10
aksreplaceafill: no, they are in separate *.conf files in /etc/httpd/conf.d/ directory07:10
replaceafillkrishnagiri, can you paste:07:10
replaceafillls -altr /etc/httpd/conf.d/07:10
replaceafillbtw is this fedora 13?07:11
replaceafilli have a VM for that! :D07:11
krishnagiriok07:12
krishnagirireplaceafill, http://fpaste.org/jsjV/07:12
krishnagiriits fedora 907:13
replaceafillevery example i find involves a virtualhost :(07:30
*** menesis has joined #schooltool08:37
*** yvl has joined #schooltool08:38
yvlaelkner, hi09:54
yvlThe latest rev. in your branch is09:55
yvl2745. By Alan Elkner <aelkner@ubuntu> on 2010-11-1509:55
yvl    added view classes for BoolFieldDescription objects09:55
yvlI didn't notice any resource "demographics" work there...09:55
aelkneryvl: hey10:16
aelknersorry, i assumed the push worked, but it had a network failure10:16
aelknerthe changes are there now10:17
yvlthanks :)10:18
yvlit happens ;)10:18
krishnagirihi yvl10:28
yvlhi krishnagiri10:28
krishnagirineed some help on redirecting schooltool with apache10:29
* yvl is not good with that voodoo10:30
yvlbut I'll try to help :)10:30
krishnagirithe rewrite rule works for schooltool but it effect other site hosted on the same server. it opens schooltool while browsing other sites as well10:31
yvlwhat does your rewrite rule look like?10:32
yvlFIY, I test with: RewriteRule ^/schooltool(/?.*) http://localhost:7080/++vh++http:localhost:80/schooltool/++$1 [P,L]10:32
krishnagiriNameVirtualHost *10:32
krishnagiri<VirtualHost *>10:32
krishnagiriServerName schooltool10:32
krishnagiriRewriteEngine On10:32
krishnagiriCustomLog /tmp/custom.log common10:32
krishnagiriErrorLog /tmp/error.log10:32
krishnagiriRewriteLog /tmp/httpd_rewrite.log10:33
krishnagiri#RewriteRule /(.*) http://www.google.com10:33
krishnagiriRewriteRule ^/(.*) http://localhost:7080/++vh++http:schooltool:80/++/$1 [P,L]10:33
krishnagiriProxyVia On10:33
krishnagiri</VirtualHost>10:33
krishnagirithats the schooltool.conf looks like10:33
yvlhmm10:36
yvl(googling)10:41
yvlwell it does seem like it should rewrite all URLs to point to  http://localhost:7080/...10:45
yvli.e. to schooltool10:46
yvlbecause of this part: ^/(.*)10:46
krishnagirioh..so what do i need to change10:47
yvlwhat is the configuration of other site?10:47
yvland how do you want to your URLs to look from outside?10:47
krishnagiriour configurations has one dedicated vhost entry for servername "schooltool" and others are normal alias and <Directory> directives10:47
krishnagirithat's what i want:: http://schooltool10:48
yvlI don't think you can configure that in *apache*10:50
yvl(though I may be wrong)10:50
yvllemme test ;)10:50
krishnagiriok10:50
yvlok10:55
yvlno idea if it's possible to do with apache10:56
yvlI'm very weak at sysadmin stuff :)10:56
yvlIf it's ok to use http://localhost/schooltool10:56
yvlthen you can use the rule I pasted above10:57
yvlok, it is possible: http://httpd.apache.org/docs/2.0/vhosts/examples.html11:01
krishnagirithe rule above doesn't seems to work for me11:01
yvlthis one? RewriteRule ^/schooltool(/?.*) http://localhost:7080/++vh++http:localhost:80/schooltool/++$1 [P,L]11:04
yvland it doesn't give you schooltool in http://localhost/schooltool ?11:05
yvl(and you restarted apache of course)11:05
krishnagiriit worked in the server itself..but not on the other pc11:09
aelkneryvl: i see you're busy with something right now, and i need to go to sleep11:09
aelknercould you meet here in eight hours?11:09
yvlcan't promise it aelkner :)11:10
yvlit'll be 7PM and Friday, so... :)11:10
yvlbut I'll definitely respond to your mail11:11
krishnagiriyvl, seems its working now with this rule:: RewriteRule ^/schooltool(/?.*) http://localhost:7080/++vh++http:schoolserver:80/schooltool/++/$1 [P,L]11:13
aelkneryvl: ok, thanks11:13
yvlthat makes sens, krishnagiri  :)11:14
yvlsense11:14
krishnagirithank you very much yvl11:14
yvlapologies I couldn't be more of a help11:15
yvlreally, really not my strong spot :)11:16
krishnagiri:)11:18
*** menesis has quit IRC11:43
*** alga has joined #schooltool11:49
*** menesis has joined #schooltool11:57
*** aks has quit IRC11:58
*** ignas has joined #schooltool12:00
*** aks has joined #schooltool12:03
*** menesis has quit IRC12:10
*** ignas has quit IRC12:23
*** ignas has joined #schooltool13:02
*** menesis has joined #schooltool13:18
*** menesis has quit IRC13:18
*** menesis has joined #schooltool13:19
*** krishnagiri has quit IRC13:23
*** aks has quit IRC13:25
*** alga has quit IRC14:28
*** alga has joined #schooltool14:53
*** alga has quit IRC15:27
*** th1a has joined #schooltool15:34
*** replaceafill has quit IRC15:44
*** replaceafill has joined #schooltool15:45
*** replaceafill has quit IRC15:46
*** alga has joined #schooltool15:47
*** yvl has quit IRC16:20
*** alga has quit IRC18:59
*** ignas has quit IRC19:25
*** alga has joined #schooltool19:55
*** replaceafill has joined #schooltool20:39
*** menesis has quit IRC21:08
*** replaceafill has quit IRC21:40
*** menesis has joined #schooltool22:05
*** menesis has quit IRC23:27
*** grantbow has quit IRC23:52

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!