bbalet / jorani

Leave and Overtime Management System
http://jorani.org/
GNU Affero General Public License v3.0
387 stars 273 forks source link

Lighttpd Example #43

Closed apowell656 closed 9 years ago

apowell656 commented 9 years ago

I am unable to get this to work using lighttpd. I am able to see some pages, but clicking on links I receive 404 and/or 500 errors. Are there any recommendations for setup? Thanks in advance.

image

image

apowell656 commented 9 years ago

Solved using the following code and one more stab at Google (sad face) in my config file. url.rewrite = ( "..(js|ico|gif|jpg|png|swf|css|html)$" => "$0", "^/(.)$" => "index.php/$1" )

bbalet commented 9 years ago

I don't know this server, but I created a sample configuration file and tested the configuration. This is the configuration I've set. Don't forget to pass some environment variables for the page requirements.php. And it is better to deny the access to .htaccess

## deny access the file-extensions
url.access-deny             = ( "~", ".inc", ".htaccess" )

#### fastcgi module
fastcgi.server = ( ".php" =>
( "localhost" =>
    (
        "docroot" => "d:/nginx/jorani",
        "host" => "127.0.0.1",
        "port" => 9000,
        "broken-scriptfilename" => "enable"
    )
)
)

#### url handling modules (rewrite, redirect, access)
url.rewrite = (
"/(.*)\.(.*)" => "$0",
"/(js|ico|gif|jpg|png|swf|css|html)/" => "$0",
"^/([^.]+)$" => "/index.php/$1"
)

#### setenv
setenv.add-environment = ( 
  "SERVER_SOFTWARE" => "lighttpd",
  "HTTP_MOD_REWRITE" => "On",
  "ALLOW_OVERWRITE" => "On"
)
apowell656 commented 9 years ago

Hey thanks for the more detailed sample config. I think this is a great way to go manage requests. I am going to see how I can get this to meet the use case that I need and then look at adding attendance tracking.

apowell656 commented 9 years ago

I am able to click throughout the program, but there is an oddity that I cannot figure out. I am not able to select a manager for a new user. Any help would be appreciated .

bbalet commented 9 years ago

Could you please ask your question on a lighttpd forum. lighttpd is neither very used nowadays nor recommended due to its serious problem of memory leak. The feature your mentioned is working on ngnix and Apache. It is not related to the core code of Jorani. Thank you for your understanding.

bbalet commented 9 years ago

I've made some search and lighttd project seems to be dead and we'll probably not get any support from its community as formerly known major users (wikipedia, youtube, etc.) are no more using it due to a serious problem of memory leak. I am closing this issue as this problem is not due to the core code of Jorani. I recommend you to migrate to nginx.

apowell656 commented 9 years ago

Thanks for the heads up, I will definitely do that.

Andre Powell On May 17, 2015 5:50 AM, "Benjamin BALET" notifications@github.com wrote:

I've made some search and lighttd project seems to be dead and we'll probably not get any support from its community as formerly known major users (wikipedia, youtube, etc.) are no more using it due to a serious problem of memory leak. I am closing this issue as this problem is not due to the core code of Jorani. I recommend you to migrate to nginx.

— Reply to this email directly or view it on GitHub https://github.com/bbalet/jorani/issues/43#issuecomment-102774233.