A web for CSStatsX SQL plugin, build with Laravel 5.8 framework.
- PHP >= 7.1.3 (see laravel docs)
- Use public folder as root directory.
- Create .env file using .env.example as example.
Alias "/stats" "/var/www/csstatsx-sql-web/public"
<Directory "/var/www/csstatsx-sql-web/public">
Options +FollowSymlinks +Indexes
AllowOverride All
</Directory>
Change RewriteBase in public/.htaccess file to match your subfolder.
location /stats {
alias /var/www/csstatsx-sql-web/public;
try_files $uri $uri/ /stats/index.php;
location ~ ^\/stats\/.*\.php$ {
include snippets/fastcgi-php.conf;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
}
See laravel docs for domain config.