Questions tagged [http]

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

HTTP is just one communications protocol on the web. Others include:

  • Transmission Control Protocol (TCP)
  • User Datagram Protocol (UDP)
  • Internet Control Message Protocol (ICMP)
  • Post Office Protocol (POP3)
  • File Transfer Protocol (FTP)
  • Internet Message Access Protocol (IMAP)

HTTP on Wikipedia

2230 questions
10
votes
2 answers

How to handle encrypted and unencrypted http connections through a single port

Please, take a look at the following diagram. How should this work? When a remote requests http:// myhost.com:8080/* , the request should be forwarded to the http server that listens on port 8008 of the loopback interface. This is the easy…
alemartini
  • 1,043
  • 1
  • 6
  • 14
10
votes
3 answers

How to redirect from HTTPS to HTTP before server error?

I used to operate a website with an SSL certificate, but have stopped using the SSL certificate. The problem is that most of the external links to the website use the https:// prefix. I have tried the https:// to http:// redirect in the .htaccess…
user981178
  • 445
  • 1
  • 3
  • 13
10
votes
1 answer

Why does Django's dev server use port 8000 by default?

(My question isn't really about Django. It's about alternative http ports. I just happen to know Django is a relatively famous application that uses 8000 by default, so it's illustrative.) I have a dev server in the wild that we occasionally need to…
kojiro
  • 559
  • 3
  • 8
  • 25
10
votes
8 answers

Why can't some websites be shown without the "www" in the URL?

I used to type the website URL without the "www" and it works fine with almost all sites that I have tried, so far. But I realize that my university's website never show up if you don't type the "www" before. Typing this http://u-psud.fr/ shows a…
user14784
10
votes
2 answers

Stop IIS 7.5 From Sending Out Cache-Control Max-Age on Error Codes

I have some static content with cache control Max-Age headers attached to it so clients will cache the static content. However, IIS 7.5 still sends this header out when there are error responses advising the client to cache this. The has the…
Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
10
votes
6 answers

Linux, simple http proxy

I have a linux server running in a data center that has some extra bandwidth and resources. I'd like to set up a proxy service so that I can route all my http/https traffic from home through it. I know how to configure my browser to talk to the…
David
  • 588
  • 2
  • 6
  • 14
9
votes
3 answers

11: Resource temporarily unavailable, while connecting to upstream + Bad Gateway (Nginx)

For all the sites on my new server, it seems as though once nginx has served some amount of traffic, it starts serving "ERROR 502 - Bad Gateway!". Let's take a look at some logs and config... OS: Ubuntu 16.04 (Server) Hardware: 6 cores, 12GB…
xendi
  • 414
  • 5
  • 10
  • 22
9
votes
3 answers

Apache DirectorySlash redirects HTTPS requests back to HTTP

User Request: https://www.example.com/test HTTPS requests --> AWS ELB HTTPS Listener --> Apache HTTP Apache getting http://www.example.com/test Apache redirect it to http://www.example.com/test/ due to DirectorySlash is On by default. User ends up…
starchx
  • 533
  • 10
  • 24
9
votes
0 answers

Can Asterisk's phoneprov module be used securely?

I'm using Asterisk 13.1.0 as packaged by Ubuntu Server 16.04 to run a pure-VoIP phone system. Asterisk has a module – phoneprov – that allows it to template out configuration files for specific lines and serve them from its builtin HTTP server. I'd…
Sam Hanes
  • 391
  • 3
  • 9
9
votes
4 answers

How to fix Image Swapping Issue in iOS 8 with keep-alive + HTTP Pipe-lining?

Ever since iOS8, the sites I managed are experiencing an intermittent problem in which images are swapping locations with other images. This has been mentioned in a number of places, but with no apparent…
David
  • 841
  • 3
  • 14
  • 31
9
votes
1 answer

HTTP URL Redirection Command Line Trace

I have to produce definitive evidence that can be documented on a piece of paper, proving that one URL redirects to another. When you browse to the URL in question, the web server responds with an HTTP redirect, which changes the URL in the address…
Giffyguy
  • 365
  • 4
  • 6
  • 21
9
votes
4 answers

How can I forward the HTTP and SSH port to my internal server using iptables?

I do not have the router so I made my CentOS 6.4 Linux system into a router, forwarding the public network traffic to my local LAN. It has two NIC cards, one for the public IP address (eth1) and another for the private IP address (eth2). I have a…
Rahul
  • 93
  • 1
  • 1
  • 7
9
votes
1 answer

Can I turn on HSTS for 1 subdomain

I would like to enforce HSTS for only 1 subdomain, but not the whole domain, is this possible ? xxx.yyy.com -> HSTS on zzz.yyy.com -> HSTS off yyy.com -> HSTS off
grosser
  • 277
  • 4
  • 8
9
votes
2 answers

Apache: insecure request sent to secure port...want to redirect

Preface Firstly: A simply Port 80 -> Port 443 Rewrite WILL NOT fix this. In almost every previous question, mail thread, forum thread, etc., I have found this was the first ignorant response and was parroted several times. Secondly: Yes I know you…
peelman
  • 801
  • 1
  • 5
  • 11
9
votes
2 answers

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?
Manthan Desai
  • 93
  • 1
  • 1
  • 4