Skip to content

Displaying Files like phpinfo.php Nginx

Problem I was having was is basically I cannot run a simple info.php inside my publichtml after doing some research I came up with this rewrite if you've any other solution do let me know it works for me. Nginx This…

Sohaib Khan1 min read
Displaying Files like phpinfo.php Nginx — editorial illustration

Problem I was having was is basically I cannot run a simple info.php inside my public_html after doing some research I came up with this rewrite if you've any other solution do let me know it works for me. Nginx This is to display all files inside your /home/domain/public_html

Nginx12 lines
location / {

location ~ ^/(.+.php)$ {
try_files $uri =404;
root $MAGE_ROOT;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
try_files $uri $uri/ /index.php?$args;
}

Was this worth your time?

Continue reading

Full archive

17 min read

Automating Proxmox VM Deployment

In the world of virtualization and infrastructure management, efficiency is everything. Today, I'm excited to share our latest automation script that transforms the traditionally manual process of creating virtual…

5 min read

DocFlux 2.0: A PDF Knowledge Base

In this post, I’ll walk you through the journey of building DocFlux 2.0, a robust PDF knowledge base application using Python, FastAPI, and cutting-edge NLP tools like OpenAI’s API. We’ll also cover how the frontend…