Route::controller(PageController::class)->group(function () {
Route::get('{slug}', 'show')->name('page.show');
});
server {
listen 127.0.0.1:80 default_server;
#listen VALET_LOOPBACK:80; # valet loopback
root /;
charset utf-8;
client_max_body_size 128M;
location /41c270e4-5535-4daa-b23e-c269744c2f45/ {
internal;
alias /;
try_files $uri $uri/;
}
location / {
rewrite ^ "/Users/yarovikov/.composer/vendor/laravel/valet/server.php" last;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log "/Users/yarovikov/.config/valet/Log/nginx-error.log";
error_page 404 "/Users/yarovikov/.composer/vendor/laravel/valet/server.php";
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass "unix:/Users/yarovikov/.config/valet/valet.sock";
fastcgi_index "/Users/yarovikov/.composer/vendor/laravel/valet/server.php";
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME "/Users/yarovikov/.composer/vendor/laravel/valet/server.php";
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location ^~ /authorized {
alias /Users/yarovikov/Sites/localhost/test-site/wp-content;
internal;
}
location ~* ^/wp-content/uploads/.+?\.(rar|zip|7z)$ {
rewrite (.+) /wp-content/themes/test-theme/inc/nginx-file-request.php?path=$1 last;
}
location ~ /\.ht {
deny all;
}
}