Questions tagged [http]

HTTP stands for Hyper Text Transfer Protocol and is the protocol used to transfer information around the World Wide Web.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
49 views

(pfSense NAT) Cannot reach NAT device on same subnet through WAN address

To preface, I am using pfSense to manage my network. The subnets listed below are separate physical networks on the pfSense. 10.99.99.0/24 is LAN and 10.69.69.0/24 is DMZ. On the pfSense I have pure ...
0 votes
0 answers
97 views

How to solve 400 bad request returned from XAMPP server

I am sending data from 2 devices. Data format from both device is similar. I have a XAMPP server running on Windows Server 2019. Device One Server Log: > 202.134.10.136 - - [28/Mar/2024:12:19:57 +...
0 votes
0 answers
451 views

GCP load balancer can't connect to instance group: unhealthy upstream error

My Goal I want to connect my domain (dashboards.example.com) to my Google VM instance on port 3000 to showcase Metabase. I do so through a Google DNS and load balancer. My problem While trying to do ...
0 votes
1 answer
128 views

Do I need to do anything to manage many outgoing connections to an outside service from a kubernetes cluster?

In my kubernetes cluster I'm running many small pods per node (about 30) and each pod creates a few TCP connections to a single service on the internet to send HTTP requests to. So each node on the ...
0 votes
0 answers
32 views

Does a redirection to a 'mailto:' URL as response to an HTTP GET request qualify as a 303/seeother HTTP status?

The title pretty much says it all, but for those wanting a bit more context: in our specific use case, the back-end API must reply to some HTTP GET requests with a redirection to an email address (...
0 votes
0 answers
27 views

nginx set up reverse proxy from subfolder to a port

I'm trying to set up a Nginx reverse proxy and I'm slowly losing my mind trying to figure it out. I have my Nginx server listening at 80, and it performs great. I have a page with a form where I want ...
0 votes
1 answer
7k views

Browser displays black "xxx took too long to respond" for 3 seconds then displays the expected page

There are two apps A and B. A is used to authenticate users and passes a token to B, B adds a cookie. Something strange happens whenever the cookie expires or after a long period of time or hard ...
0 votes
2 answers
781 views

How to wake my Ubuntu server on HTTP requests from LAN?

I have an Ubuntu 22.04.1 web server running Apache2 Server hosting 2 sites [Django website & other File hosting Site]. What I'm trying to achieve: Set the server to sleep all the time it is not in ...
2 votes
0 answers
26 views

Apache deadlock when writing in file

Apache v2.4.56 on Solaris, with libapr 1.6.2. When starting, it spawns 5 httpd processes. Occasionally the server hangs and does not accept requests. It's even impossible to connect to port 80. I did ...
0 votes
3 answers
5k views

Proxy connections to certain addresses on Linux

I need to find a way to proxy all connections to example.com through a proxy server, it needs to work on the command line, as well as automatically within Python (much like exporting http_proxy would),...
0 votes
0 answers
10 views

When does HTTP server send response header Connection: <number> or TE?

I am confusing with a proprietary CWMP ACS sending me these values in the header. What's main purposes of that?
0 votes
0 answers
19 views

OHS and ProxyPass and RewriteRule / RedirectMatch

i've setted up this virtualhost, <VirtualHost *:443> ServerName test.domain.org DocumentRoot "/u02/config/www/tst-12c" RewriteEngine on RewriteCond %{...
1 vote
1 answer
147 views

Fetching Netcat Response

Netcat is being used to create a listener on port :1000 while true; do echo -e "HTTP/1.1 200 OK\n\n $(date)" | nc -l -p 1000 -q 1; done; Navigating to X.X.X.X:1000 in a browser, ...
0 votes
3 answers
5k views

Timer_EntityBody, Timer_ConnectionIdle and Connection Closed Unexpectly

We have a windows application, it connects to a web service (XML web service hosted on a Windows 2008 Server IIS 7.5, no antivirus) and fetches some data to the client. But sometimes (around 5%-10% of ...
0 votes
0 answers
29 views

Confirm these 301 redirects are correctly setup in my htaccess file

i have in my root directory my english page and in subdirectory folder arabic page but the rule but as per https://htaccess.madewithlove.com/ : RewriteCond %{HTTP_HOST} ^arianamedicaretour\.com$ [NC] ...
2 votes
1 answer
5k views

NGINX: Check if SSL (HTTPS) is available, if not, redirect to HTTP

The current config is: server { listen 80 default_server; listen [::]:80 default_server; listen 443 ssl default_server; listen [::]:443 ssl default_server; listen 192.168.0.5:80 default_server;...
0 votes
0 answers
22 views

Can not find path:'/root/.acme.sh/*.poemhub.top_ecc'

I renew the ssl certificate using acme.sh and store in folder like this: [Sun Mar 3 11:36:44 CST 2024] Your cert is in: /root/.acme.sh/*.poemhub.top/*.poemhub.top.cer [Sun Mar 3 11:36:44 CST 2024] ...
0 votes
0 answers
39 views

Website redirects are not working when using Pihole on docker instead of VM

I’m currently in the middle of moving some infrastructure to containers from a ton of VM’s running simple things. I’m trying to move our pihole DNS server to a container. All was working well, until I ...
-1 votes
1 answer
49 views

What are cons of websockets? [closed]

I mean why at first place polling and server events exist if websocket can not only solve the problems they are solving but also allow additional functionalities (like bidirectional nature). I guess ...
0 votes
2 answers
594 views

Multiple HTTP checks per host with Icinga2

What is best practice for configuring multiple HTTP checks for a host? I know there is that "apply" method: apply Service "http" for (http_vhost => config in host.vars.vhosts) { ... } But i ...
3 votes
3 answers
2k views

`curl --verbose` but without SSL details? (i.e. just HTTP headers)

Calling -v/--verbose on curl(1) will show me the HTTP headers of a request & response (and also tell me if curl is following a redirect). But if the server is over HTTPS/SSL/TLS, then it will also ...
0 votes
1 answer
118 views

ETag-based content revalidation

My CMS generates pretty complex pages and thus takes a little while to do so (about 2 seconds), which is well above my time budget to serve pages to the client. However it's very cheap for me to know ...
0 votes
0 answers
100 views

How to replace response code sent to client when using Apache httpd to reverse proxy

I have a database that accepts HTTP POST requests with JSON payloads and correctly returns an HTTP 201 Created status response and some JSON content. Garmin has a service that will POST JSON to a ...
0 votes
0 answers
85 views

NGINX listing is correctly configured to accept HTTP traffic, but reciving 'The plain HTTP request was sent to HTTPS port' 400 error

We have some IIS sites hosted locally on some servers which we are upgrading. These sites need to be accessed by both HTTP and HTTPS, both on the new and old servers. We have assigned unique port ...
142 votes
8 answers
277k views

How to list Apache enabled modules?

Is there a command that list all enabled Apache modules?
0 votes
0 answers
99 views

HTTP Status 400-Bad Request Glassfish "The request sent by the client was syntactically incorrect"

error message on android application After reading these QNAs: https://stackoverflow.com/questions/12990717/spring-mvc-the-request-sent-by-the-client-was-syntactically-incorrect https://stackoverflow....
1 vote
1 answer
5k views

Reducing gunicorn CPU usage on tiny requests

I'm writing an event aggregation server in Python, using Nginx + Gunicorn. The system scales to about 300 rps before the CPU maxes out on a 1 cpu/2 core box (AWS c4.large). Adding an additional ...
1 vote
1 answer
4k views

Removing one cookie in proxy_pass of nginx

I'm trying to proxy_pass the whole request coming to my nginx to certain base URL to another upstream server removing server cookie. All other cookies, HTTP headers, the URL itself should be kept as ...
5 votes
6 answers
58k views

PHP-FPM - Error 503 - Attempt to connect to Unix domain socket failed

I get on server this errors (CentOs 7): [proxy:debug] proxy_util.c(2209): [client 80.251.245.153:61902] AH00944: connecting fcgi://127.0.0.1/data/webs/dev/index.php to 127.0.0.1:8000 [proxy:debug] ...
12 votes
0 answers
671 views

How much does FreeBSD accept_filter actually improve performance in a modern world?

I recently learned about FreeBSD's accept_filter socket option which can allow a worker process to avoid context switching by, for example, waiting until a full HTTP request is received with accf_http:...
0 votes
0 answers
97 views

HAPROXY http response 200 but response data missing

I have been working on troubleshooting mobile application issue, each and every request from mobile application will hit to domain lets say https://example.com with request payload in post body, this ...
0 votes
0 answers
158 views

Connection refused for http requests intermittently on multiple certain networks but not others, OPNSense Firewall, maximum confusion

I have been using an OPNSense firewall at my business for about a year now and its worked great. We use it to host some websites, an email server, and wireguard for remote connections. All on a ...
1 vote
1 answer
4k views

Return 444 Instead of 400

If someone makes an http request to an https resource on my nginx server, they get an error 400. "The plain HTTP request was sent to HTTPS port" Is there a way to return 444 instead? When I ...
0 votes
0 answers
39 views

SUBdomain redirection not working for https (apache)

I have a problem with redirecting the address: aa.bb.cc to bb.cc/aa DNS is under the control of OVH. Redirection works for http calls and redirects on a page that is https. However, if he calls https:/...
0 votes
1 answer
2k views

Redirect http calls inside iframe to https using nginx

I have an https website that needs to render an iframe of a external website that only works with http. The external http endpoints is all inside a url like: http://external-website.com/foobar Browser ...
71 votes
4 answers
257k views

Is there a maximum size for content of an HTTP POST?

Is there a maximum size for an HTTP POST? And if there is a max size, is it determined by the protocol or is it at the discretion of the server?
5 votes
2 answers
15k views

Nginx Embedded Variables - How do you get the domain name used in a request?

When using multiple domain names for one server, how do you get the domain name currently being used in a request? I'm using the embedded variables for Nginx in it's configuration file. I've set up ...
0 votes
0 answers
515 views

How to SSL Passthrough on HAProxy while routing based on full URL?

I'm new to HAProxy admin so it may be a stupid question. So I wanted to do SSL pass though on our HAProxy load balancer. The diagram look like this: client -> HAProxy -> server where, all ...
0 votes
0 answers
42 views

Getting err_tunnel_connection_failed and err_connection_timed_out when accessing URL

My company has deployed an SSO solution using Duende Identity Server and Okta We are using a proxy as the middleman between Identity Server and Okta: https://apacwelcome.saas.mrisoftware.com 99% of ...
4 votes
2 answers
490 views

Verification: can an ISP limit regional access to a website?

As I lined out here on serverfault my web-hosters support claims the following: because they can access my subdomain from the US while from Germany it resolves to a 403 error it must me my Internet ...
9 votes
2 answers
11k views

How do CDN (Content Delivery Networks) server work?

There are many CDN (Content Delivery Networks) for hosting mainly static content. How do they work? How they handle http requests?
0 votes
0 answers
146 views

Kubernates - ExternalName Service rewrite method from POST to GET after HTTPS redirect

Imagine to have this scenario: An API Gateway A Backend Service deployted on a Kuberantes cluster. Also we have: An external authenticated service (imagine an external web application out from our ...
1 vote
1 answer
247 views

Asycio/hypercorn/SSL error, all unhandled, in a Quart based restapi

I'm writing a restapi in quart, served by Hypercorn, using a TLS certificate made by BenMorel's scripts. My single python file's structure is something like this: import asyncio from quart import ...
0 votes
1 answer
60 views

map nginx $http_MyHeaderName to port

I want to create a mapping on nginx between $http_MyHeaderName and $port. I have much local hosted IIS sites and depending on header value nginx has to send request to one of them. Config: map $...
0 votes
0 answers
400 views

Firewalld: restrict ssh access to specific IP and allow that IP to access services in the interface zone

The target setup is the following: I want to restrict ssh access to the server to a specific IP, and allow the http service to all. Now, to start from "scratch" I defined a new zone which I ...
-2 votes
1 answer
213 views

How to change domains network route to custom IP when curl?

On Linux I do curl to api.binance.com website and it gives me very long ms latency 0.177s, although the server is located just near binance servers. # curl -o /dev/null -s -w 'Total: %{time_total}s\n' ...
0 votes
0 answers
74 views

How to route requests with the same query parameter to the same backend servers?

I have three Nginx reverse proxy servers with ModSecurity installed acting as WAF servers which route requests to my Kubernetes Cluster ingress-nginx, Istio service mesh is installed on the Kubernetes ...
3 votes
2 answers
15k views

Use multiple server blocks in NGINX on same host and same port

I want to configure the server such that the root of the server serves some static files, which a specific endpoing, /nextcloud serves nextcloud on the same domain. Here is my nginx.conf - ...
0 votes
1 answer
456 views

Malformed HTTP Requests

I am seeing a significant amount of HTTP requests to multiple web services that I operate which look like this: [[#22]][[#3]][[#1]][[#1]] [[#1]][[#0]][[#1]][[#28]][[#3]][[#3]]MÚ [[#7]]eÀ…Ʀ­á"¢ÛË…...
2 votes
1 answer
10k views

What's the difference between Nginx 'keepalive_time' and 'keepalive_timeout'?

In official Nginx docs a new directive added since v1.19.10 named keepalive_time 1h: Nginx keepalive_time Doc Limits the maximum time during which requests can be processed through one keep-alive ...

1
2 3 4 5
46