Deploying Laravel on shared hosting

My test project since i’m newbie to whole Laravel thing and second time to deploy something to shared hosting, first one being simple vanilla php script, is problem why some of my file upload wind up ulpoaded in wrong directory? $filenameWithExtThumb = $request->file(“thumbnail”)->getClientOriginalName(); $filenameThumb = pathinfo($filenameWithExtThumb, PATHINFO_FILENAME); $extensionThumb = $request->file(“thumbnail”)->getClientOriginalExtension(); $fileNameToStoreThumb = $filenameThumb.”_”.time().”.”.$extensionThumb; $img =…

Changing Nginx root to two different top level directories with the same permissions: one gives 403 while the other doesn’t

From reading other StackExchange posts, I figured that the reason I couldn’t use a directory in my home folder as the nginx root had something to do with permissions, possibly from parent directories. So, I decided to check the top level directories(ie, the ones under /) Both /usr/ and /home/ contain identical index.html’s and indentical…

Modify variable into log_format

I have simple config: http { log_format main ‘”rmethod”:”$request_method” “uri”:”$uri” “args”:”$args”; access_log /tmp/nginx_access.log main; … } Problem is that args contains sensitive information. Can I hide some query parameters? For example: $args value is cmd=list&username=qwe&ext=625&sensitive_info=sfsfsd&cred=Black0ps5762 After using regex ^(.*)((?:sensitive_info=.*)&)(.*)$ will form a new variable by capture groups: args = $1$3. Is it possible?