[14:17:12] !log queryrapi migrating project to eqiad1-r [14:17:14] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Queryrapi/SAL [14:24:55] !log wikistats migrating project to eqiad1-r [14:24:57] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Wikistats/SAL [14:41:58] !log wikidumpparse deleting 'wigi' VM at Maximilian's request. [14:41:59] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Wikidumpparse/SAL [14:43:00] !log butterfly moving project to eqiad1-r [14:43:01] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Butterfly/SAL [15:47:06] mutante: are you about? I'm running into trouble moving wikistats-kraken [16:41:45] !log mwfileimport deleting project as per https://phabricator.wikimedia.org/T204519 [16:41:48] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Mwfileimport/SAL [18:25:27] !log wikkstats - replaced wikistats-kraken (eqiad) with wikistats-greyhound (eqiad-r), new stretch image, copied mysql data over, deleted and recreated web proxy [18:25:28] mutante: Unknown project "wikkstats" [18:25:34] !log wikistats - replaced wikistats-kraken (eqiad) with wikistats-greyhound (eqiad-r), new stretch image, copied mysql data over, deleted and recreated web proxy [18:25:34] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Wikistats/SAL [18:39:29] !log wikistats - ran deploy-wikistats deploy, copied .xml files, migrationg to new region should be all done now [18:39:30] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Wikistats/SAL [20:17:33] I need to put this rule in my lightpd configuration. https://github.com/daylerees/laravel-website-configs/blob/master/lighttpd.conf#L7 [20:17:52] I am getting error. Can someone help [20:19:31] hi gyan. what error are you getting? I think I remember you were trying to get a rewrite rule working for a PHP project with a front-router script. [20:19:51] yes [20:20:07] I am getting 502 [20:21:05] ok, that means that your lighttpd process is either not running or failing. There is probably a $HOME/error.log file in your tool's home directory that may give some clues [20:21:55] For what it's worth, my SAL tool has this very simple rewrite rule to route all requests through its index.php file: url.rewrite-if-not-file += ( "(.*)" => "/sal/index.php/$0" ) [20:22:12] Yes [20:22:20] that line is the entire content of the tool's $HOME/.lighttpd.conf [20:22:56] Let me try [20:25:13] the "url.rewrite-if-not-file" directive does most of what the block of "url.rewrite-once" statements from the example you gave do. It tells lighttpd to first see if the route is a local file (like an image in the $HOME/public_html directory) and if not call index.php with the full path to the resource requested [20:26:49] adding rules like this to a tool's $HOME/.lighttpd.conf can be confusing at first because that file is actually appended to a base configuration that the `webservice` command sets up. You can see the base rules at https://wikitech.wikimedia.org/wiki/Help:Toolforge/Web/Lighttpd#Default_configuration [20:29:00] https://www.irccloud.com/pastebin/aJL068jA/ [20:29:21] no luck. Let me explain my situation. [20:29:21] I am running a Laravel app. [20:29:21] The home page loads fine https://tools.wmflabs.org/gyan/ [20:29:21] I have defined route in the app. [20:29:21] For the tool the route is https://tools.wmflabs.org/gyan/mass-message which gives a 404 [20:29:21] but https://tools.wmflabs.org/gyan/index.php/mass-message loads fine [20:29:41] ohh that works https://tools.wmflabs.org/gyan/mass-message [20:29:55] Have you made any changes ? [20:30:51] No, I did not, but if the config was bad and lighttpd was crashing it may have automatically restarted after you changed the config [20:32:56] gyan: your tool can not collect a wiki user's username and password. This is a violation of the Terms of Use for Toolforge. You need to use OAuth instead [20:33:27] yes this is just a test tool not in productions [20:33:41] I am just testing my self [20:34:03] you should not pass your own username and password to this tool either [20:34:15] Ok I am removing this tools [20:34:40] there is no guarantee that someone else in Toolforge can not see what is posted to that script [20:34:45] I have a the tool with 0 auth butnot uplaoded yet [20:35:03] Sorry about that [20:35:58] It seems like the solution you have given is working [20:36:05] no problem. I'm not mad, just concerned that you not compromise your password or the passwords of others [20:41:51] You are always helpful I know. [20:42:07] Thanks [21:28:33] !log openstack moving VMs to eqiad1 [21:28:34] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Openstack/SAL