Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Joomsef support lighttpd rewrite?
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Joomsef support lighttpd rewrite?

Joomsef support lighttpd rewrite? 17 years, 4 months ago #2545

  • mrunix
I use Joomsef for my website, but Joomsef can not support lighhtpd. If we want to use lighttpd, how to config lighttpd in our lighttpd.conf?

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 support lighttpd rewrite? 17 years, 4 months ago #2552

  • dajo
  • OFFLINE
  • Posts: 5069
Hi mrunix,

we don't support different rewriting engine than standard mod_rewrite.
You can try to buy our Support time for this specific task.

Best regards,
David
ARTIO Support Team

Re:Joomsef support lighttpd rewrite? 17 years, 1 month ago #3201

Well, Lighttpd by itself cannot support direct rewrites like this. However, you should compile Lighttpd with LUA (mod_magnet). Once you have that, you can simply do the following
in lighttpd.conf
 
magnet.attract-physical-path-to = (\"/etc/lighttpd/joomla.lua\"«»)
 


in /etc/lighttpd/joomla.lua
 
if (not lighty.stat(lighty.env[\"physical.path\"])) then
lighty.env[\"physical.path\"] = lighty.env[\"physical.doc-root\"] .. \"index.php\"
end
 


That should take care of all SEF urls. Keep in mind that it simply checks to see if a file exists, and if not, points the request to /index.php<br><br>Post edited by: ircmaxell, at: 2007/10/08 15:56

Re: Joomsef support lighttpd rewrite? 13 years, 5 months ago #22427

i have the same problem, is any new solutions about this?
abgout this method to compile Lighttpd with LUA: is it easy to be done? how i can do it?
Also im not using the free version but the paid verison
Last Edit: 13 years, 5 months ago by aleamarket.
  • Page:
  • 1
User Login Empty