- html (root) <== This was incorrectly named f3 (it is called 'f3' on my Mac but 'html' on the Nginx server - both are document roots)
- index.php
- app
- controls
- HomeController.php
- config
- config.ini
- route.ini
- private
- lib (f3)
[globals]AUTOLOAD = app/
[routes]
GET / = \Controls\Common\HomeController->render
namespace Controls\Common;
class HomeController extends \Controls\Base\CoreController {
Not Found
HTTP 404 (GET /)
[/srv/apps/nginx/skgcasoccer.com/private/lib/base.php:1561] Base->error()
[index.php:50] Base->run()
Internal Server Error
Invalid class \Controls\Common\HomeController
[/srv/apps/nginx/skgcasoccer.com/private/lib/base.php:2152] Base->error()
[/srv/apps/nginx/skgcasoccer.com/private/lib/base.php:1747] Base->grab()
[/srv/apps/nginx/skgcasoccer.com/private/lib/base.php:1599] Base->call()
[index.php:50] Base->run()
server {
listen 192.168.0.126:443 ssl;
server_name v3.skgcasoccer.com;
ssl_certificate /srv/etc/nginx/ssl/certs/ssl-cert-v3.skgcasoccer.com.crt;
ssl_certificate_key /srv/etc/nginx/ssl/private/ssl-cert-v3.skgcasoccer.com.key;
access_log /srv/logs/nginx/skgcasoccer.com/access_v3.skgcasoccer.com.log;
error_log /srv/logs/nginx/skgcasoccer.com/error_v3.skgcasoccer.com.log notice;
include /srv/etc/nginx/include/skgcasoccer.com_core.conf;
}
root /srv/apps/nginx/skgcasoccer.com/html;
index index.php index.htm index.html;
location = /favicon.ico { log_not_found off; access_log off; }
location = /robots.txt { allow all; log_not_found off; access_log off; }
location / {
index index.php index.html index.htm;
try_files $uri /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/var/run/php-fpm/php-fpm-skgcasoccer.com.sock;
include /srv/etc/nginx/conf/fastcgi_params;
# FastCGI Bufffers for performance
fastcgi_buffer_size 128k;
fastcgi_buffers 256 16k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_read_timeout 300;
}
location ~* \.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ { access_log off; expires 1w; }
server {
listen 443 ssl http2;
server_name example.com;
root /var/www/site;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
include snippets/fastcgi-php.conf;
}
}
--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to f3-framework...@googlegroups.com.
To post to this group, send email to f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/a3fa33f7-bf9d-4ef2-bf67-da89fae3ea0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
HomeController.php" to "h
omecontroller.php"
controls/HomeController.php that contains \Controls\HomeController will cause problems on case-sensitive file systems
namespace Controls\Common;
class HomeController extends \Controls\Base\CoreController {
namespace controls\common;
class HomeController extends \controls\base\CoreController {
AUTOLOAD = "../app/classes/"
$f3 = require('lib/base.php');
$f3->set('AUTOLOAD', 'app/;app/ext/');
$f3->route('GET|POST /something','\Controllers\SomeControler->some_method');
$mymodel = new \Models\MyModel();