You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.1 KiB
43 lines
1.1 KiB
# Become Root:
|
|
$sudo -i
|
|
|
|
$ cd /etc/nginx/sites-enabled
|
|
$ cp default tts_project
|
|
$ nano tts_project
|
|
Some where in side of your SERVER BLOCK, add the following:
|
|
|
|
|
|
root /var/www/tts_project/public;
|
|
|
|
index main.page;
|
|
|
|
error_log /var/log/nginx/tts.log;
|
|
|
|
server_name YOUR-WEB-SITE_DOMAIN_GOES_HERE!!;
|
|
|
|
location / {
|
|
gzip_static on;
|
|
try_files $uri /main.page$is_args$args;
|
|
}
|
|
|
|
location = /main.page {
|
|
gzip on;
|
|
# Replace php-fpm with unix:/var/run/php/php8.2-fpm.sock
|
|
# Your Version of PHP goes there... 8.2 or later...
|
|
fastcgi_pass php-fpm;
|
|
|
|
fastcgi_split_path_info ^(.+?\.page)(/.*)$;
|
|
try_files $fastcgi_script_name =404;
|
|
set $path_info $fastcgi_path_info;
|
|
fastcgi_param PATH_INFO $path_info;
|
|
fastcgi_index main.page;
|
|
include fastcgi.conf;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
|
|
|
|
|
# fastcgi_intercept_errors on;
|
|
# mirror @logging;
|
|
# mirror_request_body off;
|
|
} |