Basic rewrite issues - lighty newbie!

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
AstroDaz's picture

Hi all

I have an ASUS Transformer T700 running Android 4. I have installed an app called KSWEB which has MySql, php5 and lighttp.

I have downloaded d7 and it installs fine, and i have exported my site database from my laptop and imported to the 'droid ok.

When i go to the localhost via the pad browser, the home page is served but anything else fails with a 404 error. If i use the '?q=' in the url, then the sub page loads. I cannot get it to work with clean urls.

There is only 1 site, no virtual hosts or anything like that.

Any help in working out a rule would be great!

Thanks
Daz

Comments

LUA script

Sakrecoer's picture

I'm not an expert, just an experienced n00b. I did it for some time ago now, and clean url's was a bit of a googlebased quest game when using lighty. But it works fine!

I used a LUA script, and made lighttpd aware of it by insterting this string in ligghtpd.conf:

Drupal rules

magnet.attract-physical-path-to = ( "/etc/lighttpd/drupal.lua" )

I mainly used this tutorial: http://nordisch.org/2007/2/6/drupal-on-lighttpd-with-clean-urls where you willl find this LUA script: http://nordisch.org/drupal.lua

and it worked fine!

Hope it helps!

hmm

Sakrecoer's picture

Somehow i triggered a spam filter.... so my corrections will not be accepted... Sorry for my typiGn and the string being present as a wiki article...

I need url clean

chaskype's picture

Exist a example or wiki for drupal 7 with lighttpd 1.4? Please

here's what i'm currently using

macinr's picture

pasting lighttpd configs here doesn't always work, so here is my personal website with the lighttpd 1.4 config directives for drupal:

http://redigital.org/wp/sysadmin/lighttpd-1-4-php-5-4-drupal-clean-urls/

Lighttpd

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: