-
Notifications
You must be signed in to change notification settings - Fork 0
Nginx
LaCodon edited this page Dec 14, 2015
·
1 revision
If you use Nginx as a webserver, you do not need any .htaccess file but pass the following steps in order to make a Famework project running:
- Navigate to your sites-available folder on your server (e.g.
/etc/nginx/sites-available/on default Debian 8) - Open the file for your vhost
- Search for the
location / {section within theserver {part - Paste
try_files $uri $uri/ /index.php?$args;in this section; Maybe you have to replace/index.phpwith something like/path/index.phpif your /index.php is publicly accessible via http://www.example.com/path/index.php - Reload the config via executing
sudo /etc/init.d/nginx reloadon the command line interface
This just makes Nginx to redirect any request to /index.php and thus enabling the nice path feature of Famework.
- Home
- Getting Started
- Server Setup
- Configuration Files
- Application Structure
- Classes