*** menesis has quit IRC | 01:11 | |
*** replaceafill has joined #schooltool | 02:43 | |
*** ignas has joined #schooltool | 03:48 | |
*** ignas has quit IRC | 04:04 | |
*** aks has joined #schooltool | 05:22 | |
*** krishnagiri has joined #schooltool | 05:22 | |
aks | th1a, replaceafill: hello | 05:23 |
---|---|---|
th1a | aks: Hi! | 05:24 |
replaceafill | hello aks | 05:24 |
aks | replaceafill: redirecting in the vhost configuration does not work well, krishnagiri had been testing it | 05:25 |
aks | krishnagiri: ^^^, can you please explain about the problem? | 05:25 |
krishnagiri | the rewrite rule works for schooltool but it effect other site hosted on the same server. it opens schooltool while browsing other sites as well | 05:31 |
replaceafill | if you turn off the rewrite rule for schooltool you can access the other sites correctly? | 05:32 |
krishnagiri | here's the rule we r using: RewriteRule ^/(.*) http://localhost:7080/++vh++http:schooltool:80/++/$1 [P,L] | 05:32 |
krishnagiri | yes | 05:32 |
replaceafill | and the ServerName is schooltool, right? | 05:33 |
krishnagiri | yes | 05:33 |
replaceafill | have you tried Proxy instead of Rewrite | 05:34 |
replaceafill | i mean the proxy module instead of the rewrite module | 05:34 |
replaceafill | using ProxyPass directives? | 05:34 |
krishnagiri | no | 05:34 |
replaceafill | just the rule seems fine to me | 05:35 |
replaceafill | can you share the whole config file? | 05:35 |
krishnagiri | ok | 05:35 |
krishnagiri | schooltool.conf :: http://fpaste.org/YPhf/ | 05:37 |
th1a | aks: How's the Fedora 9 packaging coming? | 05:38 |
aks | th1a: we're trying to fix a problem with the schooltool virtualhost configuration, after that I'll repackage and test it | 05:38 |
aks | th1a: then I'll release them, ETA 2 days | 05:38 |
th1a | OK. Thanks. | 05:39 |
* replaceafill is comparing krishnagiri's file with one of his instances | 05:43 | |
replaceafill | unfortunately my apaches have only one config file :( | 05:43 |
replaceafill | krishnagiri, do you have schooltool as an alias in your server's /etc/hosts file? | 05:48 |
krishnagiri | no | 05:48 |
replaceafill | can you share that file? | 05:49 |
krishnagiri | ok | 05:49 |
krishnagiri | 27.0.0.1 schoolserver.test.system.olenepal.org localhost.localdomain localhost | 05:49 |
krishnagiri | ::1 localhost6.localdomain6 localhost6 | 05:49 |
replaceafill | ServerName fully-qualified-domain-name[:port] | 05:52 |
replaceafill | the fully-qualified-domain-name is the one that makes me wonder in this case | 05:52 |
krishnagiri | what should i try then? | 06:00 |
replaceafill | i'm trying to set up apache like you have it, with no domains | 06:01 |
krishnagiri | oh ok | 06:02 |
*** th1a has quit IRC | 06:02 | |
replaceafill | krishnagiri, hhmm interesting: | 06:11 |
replaceafill | Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName | 06:11 |
replaceafill | ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName | 06:11 |
replaceafill | . | 06:11 |
aks | replaceafill: that warning msg is okay | 06:12 |
replaceafill | i think it's not a problem with the rewrite rule | 06:14 |
replaceafill | obviously :P | 06:14 |
replaceafill | if you set: RewriteRule /(.*) http://www.google.com | 06:15 |
replaceafill | you should be redirected to google for any of your sites, right? | 06:15 |
replaceafill | if so, it's a problem with the virtual host configuration | 06:15 |
krishnagiri | let me check | 06:16 |
replaceafill | and i suspect of the ServerName directive | 06:16 |
replaceafill | or something related | 06:16 |
replaceafill | that doesnt allow apache differentiate between sites | 06:17 |
*** th1a has joined #schooltool | 06:18 | |
krishnagiri | yes it redirects all our site to google | 06:18 |
*** aelkner has quit IRC | 06:25 | |
replaceafill | krishnagiri, can you paste: | 06:37 |
replaceafill | ls -altr /etc/apache/sites-enabled | 06:37 |
replaceafill | i have to vhosts | 06:38 |
replaceafill | default and other | 06:38 |
aks | replaceafill: fedora does not has a sites-enabled and sites-available files | 06:38 |
replaceafill | :| | 06:38 |
replaceafill | everything is on by default? | 06:38 |
aks | replaceafill: fedora based apaches parses every *.conf file in /etc/httpd/conf.d/ directory | 06:38 |
replaceafill | aks, does it sort them? | 06:39 |
replaceafill | alphabetically? | 06:39 |
aks | replaceafill: I'm not sure abt that | 06:39 |
replaceafill | the thing is that i have a similar behaviour to yours, when i change the order of my vhosts | 06:40 |
aks | replaceafill: i see | 06:40 |
replaceafill | but setting servername in every virtualhost fixes it... | 06:43 |
replaceafill | ServerName localhost | 06:43 |
replaceafill | ServerName teacher | 06:43 |
replaceafill | ServerName student | 06:43 |
replaceafill | localhost -> default apache config | 06:44 |
replaceafill | teacher and student -> with redirects to google and schooltool.org | 06:44 |
replaceafill | and with "127.0.0.1localhost student teacher" in my /etc/hosts file | 06:44 |
*** aelkner has joined #schooltool | 06:50 | |
th1a | Good night and good luck gentlemen! | 06:53 |
*** th1a has quit IRC | 06:53 | |
krishnagiri | replaceafill, still not working | 06:57 |
replaceafill | krishnagiri, how many vhosts do you have in your server? | 06:58 |
krishnagiri | its the only virtual host | 07:00 |
replaceafill | !?!? | 07:00 |
replaceafill | you mean apache only serves this vhost? | 07:01 |
aks | replaceafill: our configurations has one dedicated vhost entry for servername "schooltool" and others are normal alias and <Directory> directives | 07:02 |
* replaceafill is reading http://doc.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/Deployment_Guide/s1-apache-virtualhosts.html | 07:08 | |
replaceafill | to get familiar with fedora :) | 07:08 |
aks | replaceafill: :) | 07:08 |
replaceafill | aks, your aliases and <Directory> directives live in /etc/httpd/conf/httpd.conf? | 07:10 |
replaceafill | or is there any other file for that? | 07:10 |
aks | replaceafill: no, they are in separate *.conf files in /etc/httpd/conf.d/ directory | 07:10 |
replaceafill | krishnagiri, can you paste: | 07:10 |
replaceafill | ls -altr /etc/httpd/conf.d/ | 07:10 |
replaceafill | btw is this fedora 13? | 07:11 |
replaceafill | i have a VM for that! :D | 07:11 |
krishnagiri | ok | 07:12 |
krishnagiri | replaceafill, http://fpaste.org/jsjV/ | 07:12 |
krishnagiri | its fedora 9 | 07:13 |
replaceafill | every example i find involves a virtualhost :( | 07:30 |
*** menesis has joined #schooltool | 08:37 | |
*** yvl has joined #schooltool | 08:38 | |
yvl | aelkner, hi | 09:54 |
yvl | The latest rev. in your branch is | 09:55 |
yvl | 2745. By Alan Elkner <aelkner@ubuntu> on 2010-11-15 | 09:55 |
yvl | added view classes for BoolFieldDescription objects | 09:55 |
yvl | I didn't notice any resource "demographics" work there... | 09:55 |
aelkner | yvl: hey | 10:16 |
aelkner | sorry, i assumed the push worked, but it had a network failure | 10:16 |
aelkner | the changes are there now | 10:17 |
yvl | thanks :) | 10:18 |
yvl | it happens ;) | 10:18 |
krishnagiri | hi yvl | 10:28 |
yvl | hi krishnagiri | 10:28 |
krishnagiri | need some help on redirecting schooltool with apache | 10:29 |
* yvl is not good with that voodoo | 10:30 | |
yvl | but I'll try to help :) | 10:30 |
krishnagiri | the rewrite rule works for schooltool but it effect other site hosted on the same server. it opens schooltool while browsing other sites as well | 10:31 |
yvl | what does your rewrite rule look like? | 10:32 |
yvl | FIY, I test with: RewriteRule ^/schooltool(/?.*) http://localhost:7080/++vh++http:localhost:80/schooltool/++$1 [P,L] | 10:32 |
krishnagiri | NameVirtualHost * | 10:32 |
krishnagiri | <VirtualHost *> | 10:32 |
krishnagiri | ServerName schooltool | 10:32 |
krishnagiri | RewriteEngine On | 10:32 |
krishnagiri | CustomLog /tmp/custom.log common | 10:32 |
krishnagiri | ErrorLog /tmp/error.log | 10:32 |
krishnagiri | RewriteLog /tmp/httpd_rewrite.log | 10:33 |
krishnagiri | #RewriteRule /(.*) http://www.google.com | 10:33 |
krishnagiri | RewriteRule ^/(.*) http://localhost:7080/++vh++http:schooltool:80/++/$1 [P,L] | 10:33 |
krishnagiri | ProxyVia On | 10:33 |
krishnagiri | </VirtualHost> | 10:33 |
krishnagiri | thats the schooltool.conf looks like | 10:33 |
yvl | hmm | 10:36 |
yvl | (googling) | 10:41 |
yvl | well it does seem like it should rewrite all URLs to point to http://localhost:7080/... | 10:45 |
yvl | i.e. to schooltool | 10:46 |
yvl | because of this part: ^/(.*) | 10:46 |
krishnagiri | oh..so what do i need to change | 10:47 |
yvl | what is the configuration of other site? | 10:47 |
yvl | and how do you want to your URLs to look from outside? | 10:47 |
krishnagiri | our configurations has one dedicated vhost entry for servername "schooltool" and others are normal alias and <Directory> directives | 10:47 |
krishnagiri | that's what i want:: http://schooltool | 10:48 |
yvl | I don't think you can configure that in *apache* | 10:50 |
yvl | (though I may be wrong) | 10:50 |
yvl | lemme test ;) | 10:50 |
krishnagiri | ok | 10:50 |
yvl | ok | 10:55 |
yvl | no idea if it's possible to do with apache | 10:56 |
yvl | I'm very weak at sysadmin stuff :) | 10:56 |
yvl | If it's ok to use http://localhost/schooltool | 10:56 |
yvl | then you can use the rule I pasted above | 10:57 |
yvl | ok, it is possible: http://httpd.apache.org/docs/2.0/vhosts/examples.html | 11:01 |
krishnagiri | the rule above doesn't seems to work for me | 11:01 |
yvl | this one? RewriteRule ^/schooltool(/?.*) http://localhost:7080/++vh++http:localhost:80/schooltool/++$1 [P,L] | 11:04 |
yvl | and it doesn't give you schooltool in http://localhost/schooltool ? | 11:05 |
yvl | (and you restarted apache of course) | 11:05 |
krishnagiri | it worked in the server itself..but not on the other pc | 11:09 |
aelkner | yvl: i see you're busy with something right now, and i need to go to sleep | 11:09 |
aelkner | could you meet here in eight hours? | 11:09 |
yvl | can't promise it aelkner :) | 11:10 |
yvl | it'll be 7PM and Friday, so... :) | 11:10 |
yvl | but I'll definitely respond to your mail | 11:11 |
krishnagiri | yvl, seems its working now with this rule:: RewriteRule ^/schooltool(/?.*) http://localhost:7080/++vh++http:schoolserver:80/schooltool/++/$1 [P,L] | 11:13 |
aelkner | yvl: ok, thanks | 11:13 |
yvl | that makes sens, krishnagiri :) | 11:14 |
yvl | sense | 11:14 |
krishnagiri | thank you very much yvl | 11:14 |
yvl | apologies I couldn't be more of a help | 11:15 |
yvl | really, really not my strong spot :) | 11:16 |
krishnagiri | :) | 11:18 |
*** menesis has quit IRC | 11:43 | |
*** alga has joined #schooltool | 11:49 | |
*** menesis has joined #schooltool | 11:57 | |
*** aks has quit IRC | 11:58 | |
*** ignas has joined #schooltool | 12:00 | |
*** aks has joined #schooltool | 12:03 | |
*** menesis has quit IRC | 12:10 | |
*** ignas has quit IRC | 12:23 | |
*** ignas has joined #schooltool | 13:02 | |
*** menesis has joined #schooltool | 13:18 | |
*** menesis has quit IRC | 13:18 | |
*** menesis has joined #schooltool | 13:19 | |
*** krishnagiri has quit IRC | 13:23 | |
*** aks has quit IRC | 13:25 | |
*** alga has quit IRC | 14:28 | |
*** alga has joined #schooltool | 14:53 | |
*** alga has quit IRC | 15:27 | |
*** th1a has joined #schooltool | 15:34 | |
*** replaceafill has quit IRC | 15:44 | |
*** replaceafill has joined #schooltool | 15:45 | |
*** replaceafill has quit IRC | 15:46 | |
*** alga has joined #schooltool | 15:47 | |
*** yvl has quit IRC | 16:20 | |
*** alga has quit IRC | 18:59 | |
*** ignas has quit IRC | 19:25 | |
*** alga has joined #schooltool | 19:55 | |
*** replaceafill has joined #schooltool | 20:39 | |
*** menesis has quit IRC | 21:08 | |
*** replaceafill has quit IRC | 21:40 | |
*** menesis has joined #schooltool | 22:05 | |
*** menesis has quit IRC | 23:27 | |
*** grantbow has quit IRC | 23:52 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!