Categories
Mastering Development System & Network

Nginx as a chain proxy with stunnel+pproxy+tor for add|set http headers responds with 400 status code

My initial goal is creating working http(ssl) proxy based on TOR socks5 connection first I up python-proxy with self-signed key then chained stunnel for securing connection, it works but cannot handle wss connection and seems like needs this headers patch ‘Access-Control-Allow-Origin’ ‘*’ … I didn’t find info how to do that using stunnel config, so […]

Categories
Mastering Development System & Network

ERR_CERT_COMMON_NAME_INVALID on chrome

When trying to login to my website on Chrome based browsers I get the error: Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID On firefox it works fine, tho. I installed certificates by certbot. My corresponding nginx settings look like: server { listen 80; server_name pvapp.umwelt-campus.de; return 302 https://$server_name$request_uri; } server{ # SSL configuration listen 443 ssl default_server; […]

Categories
Mastering Development System & Network

502 Bad Gateway when uploading files (NGINX and NodeJS)

502 Bad Gateway when uploading pics (NGINX and NodeJS) Hey Guys. Please help me out, I am pulling out my hair in frustration trying to fix this. So here is the issue. I am developing an app where the user can upload files. While the backend call seems to work fine, the call when uploading […]

Categories
Mastering Development System & Network

cors header wasn’t set in request although apache server was configured

can anyone point me why my request header wasn’t set with cors header although in apache httpd.conf was configured just to do that. Am I missing something here ?? Thanks in advance. <Directory "${SRVROOT}/htdocs"> Header set Access-Control-Allow-Origin "some url" Header set Access-Control-Allow-Headers "Accept, Accept-Charset, Accept-Encoding, Accept-Language, Connection, Content-Type, Cookie, DNT, Host, Keep-Alive, Origin, Referer, User-Agent, […]

Categories
Development User Help

Windows 10 WSL cURL can’t access localhost with error (Failed to connect to localhost port 80: Connection refused)

The issue with my WSL is the following my WSL can’t make a cURL request anywhere under localhost. For this example, I have created a page that returns hello world. My cURL looks like this (note that the response is the same even with http://) curl -vvv localhost:80/hello_world.html and the response is the following * […]

Categories
Development User Help

Windows 10 WSL cURL can’t access localhost with error (Failed to connect to localhost port 80: Connection refused)

The issue with my WSL is the following my WSL can’t make a cURL request anywhere under localhost. For this example, I have created a page that returns hello world. My cURL looks like this (note that the response is the same even with http://) curl -vvv localhost:80/hello_world.html and the response is the following * […]

Categories
Development User Help

Windows 10 WSL cURL can’t access localhost with error (Failed to connect to localhost port 80: Connection refused)

The issue with my WSL is the following my WSL can’t make a cURL request anywhere under localhost. For this example, I have created a page that returns hello world. My cURL looks like this (note that the response is the same even with http://) curl -vvv localhost:80/hello_world.html and the response is the following * […]

Categories
Development System & Network

Getting full rest HTTP methods to work with nginx index directive

I’ve been trying to update my API to be fully REST compliant, and I haven’t been able to get DELETE, PUT, OPTION etc to work with the index directive. I’ve tried every config I can find on here and I can’t figure out what I’m doing wrong. The methods work fine if I do the […]

Categories
Development PHP

Docker nginx link with php-fpm

I am a newbie with docker since my docker-compose show no error but when i am trying access the webpage it shows defualt nginx page but not show my php application although nginx is link with php-fpm i am missing something here Here is my docker-compose.yml file version: ‘3’ services: ### PHP-FPM Container php-fpm: build: […]