Closed p4inki77er closed 6 years ago
Try adding the `"check-local" => "disable" parameter:
fastcgi.server += ( ".php" =>
((
"host" => "127.0.0.1",
"port" => "9000",
"broken-scriptfilename" => "enable",
"check-local" => "disable"
))
)
Also, the name of the web server is "lighttpd"
Thank you very much for your response.
I changed my /etc/lighttpd/conf-available/10-stikked.conf to
server.modules += ( "mod_fastcgi" )
server.modules += ( "mod_rewrite" )
fastcgi.server += ( ".php" =>
((
"host" => "127.0.0.1",
"port" => "9000",
"broken-scriptfilename" => "enable",
"check-local" => "disable"
))
)
$HTTP["host"] == "http://sub.domain.tld/" {
url.rewrite-once = (
"^/static/(.*)$" => "/static/$1",
"^/favicon\.ico$" => "/favicon.ico",
"^/robots\.txt$" => "/robots.txt",
"^/(.*)$" => "/index.php$2",
)
server.document-root = "/var/www/stikked/htdocs"
#accesslog.filename = "/var/log/lighttpd/stikked.access.log"
}
However I still get the same 404 error, when I try to create a new paste or click on "about" in the navbar.
FWIW here's what I do:
$HTTP["host"] == "paste.the-compiler.org" {
server.indexfiles = ( "index.php" )
url.rewrite-once = (
"^/view/captcha/(.*)$" => "index.php/view/captcha/$1",
"^/view(.*)$" => "index.php/view/$1",
"^/lists(.*)$" => "index.php/lists/$1",
"^/about$" => "index.php/about",
"^/api(.*)$" => "index.php/api$1",
"^/spamadmin(.*)$" => "index.php/spamadmin$1",
"^/trends" => "index.php/trends",
"^/post_encrypted(.*)$" => "index.php/post_encrypted$1",
"^/main(.*)$" => "index.php/main$1",
"^/cron(.*)$" => "index.php/cron$1"
)
server.document-root = "/usr/share/webapps/Stikked/"
setenv.add-environment = ( "CI_ENV" => "production" )
}
Thank you very much. Now it works ;)
Hello,
unfortunately I am not able to get the application to work. I can only see the startpage, when i click on create it says
404 not Found
How can I fix that issue?/etc/lighttpd/10-skitted.conf
php -v
service php5-fpm status
/etc/lighttpd/lighttpd.conf