# Web Server Setup ## nginx Basic nginx setup ```nginx server { location / { try_files $uri $uri/ /index.php$uri?$args; } location ~ ^(.+\.php)($|/) { fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_index index.php; } location ^~ /vendor { deny all; } } ``` ## Apache Make sure to have `mod_rewrite` and `AllowOverride All` enabled in order to take advantage of the included `.htaccess` file. If you don't wish to use an `.htaccess` file, include the contents of the `.htaccess` file in your Apache configuration.