Page 1 of 1

Joomsef (or sh404sef) support lighttpd rewrite?

Posted: Fri Jul 13, 2007 8:20 am
by mrunix
I use Joomsef (or sh404sef) for my website, but Joomsef(or sh404sef)  can not support lighhtpd. If we want to use lighttpd, how to config lighttpd in our lighttpd.conf?

Anybody know which SEF extensions can support lighttpd, and know how to configure lighttpd, please tell me, thank you!

Following is our lighttpd.conf. VirtueMart can not rewrite. Can you help me? Thank you!

$HTTP["host"] == "192.168.21.43" {
$HTTP["url"] =~ "^.*(html|php|/).*$" {
magnet.attract-physical-path-to = ("/etc/lighttpd/joomla.lua")
}

server.document-root = "/var/www/php"
# server.error-handler-404 = "/dispatch.fcgi"
fastcgi.server = ( ".php" =>
( "phpapp" =>
( "socket" => "/var/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi",
"max-procs" => 2
)
)
)
url.rewrite-once = (
"^images*.(jpg|jpeg|gif|png)" => "$0",
"^/administrator.*$" => "$0",
"^/mambots.*$" => "$0",
"^/shop/(/|.htm|.php|.html|/[^.]*)$" => "/index.php",
"^/outac-blog/(/|.htm|.php|.html|/[^.]*)$" => "/index.php",
"^/help-with-faq/(/|.htm|.php|.html|/[^.]*)$" => "/index.php",
"^/outac-s-news/(/|.htm|.php|.html|/[^.]*)$" => "/index.php",
"(/|.htm|.php|.html|/[^.]*)$" => "/index.php"
)
}

Re: Joomsef (or sh404sef) support lighttpd rewrite?

Posted: Fri Jul 13, 2007 8:23 am
by LorenzoG
Mod Note Lorenzo: Moving this thread from Extensions Directory Forum >> 3rd Party Extensions/Components

Re: Joomsef (or sh404sef) support lighttpd rewrite?

Posted: Mon Jul 16, 2007 12:45 pm
by shumisha
Hi mrunix,

I have just released a new version of sh404SEF. It has an operating mode which does not require mod_rewrite, but relies on path info to operate. I'd be curious to know if this works with lighhtpd, but have no time to research this.
Beware this is not the default operating mode, you have to install, then go to configuration and set Rewrite mode to "no .htaccess".
There are actually two no .htaccess modes, just try both but be sure to purge sef url in between.

Regards

Re: Joomsef (or sh404sef) support lighttpd rewrite?

Posted: Sat Jul 16, 2011 10:21 pm
by sunshine1688
1, switch apache to lighttpd in ur VPS/VDS

2, go to enable FastCGI:
1) Domain home–Domain Features–set Number Of Fastcgi and enable FASTcgi.

very important: if you enable Xcache, please must set the number to 1, otherwise your RAM will be eaten by many zombie.

To check this, run “netstat -anpo|grep “php-cgi”|wc -l”, if the result is “0″, it means you should change your number of fastcgi process mumber.

2) Domain home–domain–Fcgi Configuration–enable

3, add this to etc/lighttpd/lighttpd.conf

Code: Select all

server.error-handler-404   = “/index.php”
4) Configure Joomla

on Joomla administrator panel, Global Configuration–SEO Settings–enable “Use Apache mod_rewrite” and “Search Engine Friendly URLs”, and in SH404SEF Configuration, select “with .htaccess(mod_rewrite)”.

5) done.

If you enable Joomla cache, you may can not delete the cache files on “Clean Cache”. In this case, go to Kloxo File Manager, deleted all cache files.