Skip to content

Tag: nginx

Nginx not finding PHP files

I’ve been searching through all the questions asked and all answers haven’t worked. I’m trying to install Damn Vulnerable Web App to my Centos 6.9 server, but when I try to access the page, I’m greeted with a 404 File Not Found error. I can access html files perfectly, just not PHP. /e…

How to stop nginx from using port 80

I’m trying to update nginx using sudo apt-get install nginx, but it is giving me an error message related to port 80 being occupied. When I run I get Although I wasn’t able to easily understand what each column means from the –help function, I suppose that in this example 6845 is the process…

Need help on Nginx CGI Configuration

I need to set the nginx configurations such that the URL “http://host/cgi-bin/hw.sh/some/path/to/data/” should trigger the shell script “hw.sh” present under path “/usr/lib/cgi-bin/”. Now, according to the instructions mentioned in page https://www.howtoforge.com/serving-cg…

Howto debug when nginx gives 502 bad gateway?

On landing.example.com:10000 have I a webserver that works fine, which is a Docker container that exposes port 10000. Its IP is 172.17.0.2. What I would like is having a nginx reverse proxy on port 80, and send the visitor to different Docker containers depending on the URL they visit. When I do this, I get 5…