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
12
votes
7 answers

Serving port 443 over http creates 400 Bad Request Error instead of redirect

So for posterity sake, I am trying to configure my server so that even when someone tries to go to go to http:// domain.com:443, they would be correctly redirected to the https version of the site (https:// domain.com). When testing something like…
Bitz
  • 223
  • 1
  • 2
  • 5
12
votes
2 answers

How To Serve Static File Directory Over HTTP Using NGINX

Problem A server with NGINX has a directory with files it needs to serve over HTTP. The directory is located at (example): /media/user/data Question What configuration is required in NGINX to serve that directory (and all its files and sub-folders)…
Frugal Rasin
  • 143
  • 1
  • 1
  • 5
12
votes
1 answer

nginx: [emerg] unknown directive "http"

When I try to make code like it: 1. http { 2. script 3. server { 4. ... 5. location ... 6. } 7. } I get error: nginx: [emerg] unknown directive "http" in /etc/nginx/conf.d/nginx.conf:1 When code is like this: 1. server { 2.…
user1056926
11
votes
2 answers

How to serve different robots.txt for http and https on same site?

I got a small site which served by Apache (I can't put Nginx in front nor change Apache to anything), and it is set up to serve the same site both over http and https (no redirects http->https is there so far, so both http and https versions are…
Kevin M
  • 299
  • 3
  • 10
11
votes
5 answers

Testing a servers ability to serve a particular domain

Say you have Server A set up with your favourite webserver-daemon to serve www.example.com. Now you want to move this to Server B. After a bunch of copying and configuring, the new server seems to be ready. A final test would be in order: Before…
Jarmund
  • 535
  • 2
  • 6
  • 17
11
votes
2 answers

nginx proxy_pass rewrite of response header location

The aim of this nginx instance is to get GitLab and OpenWRT Luci to redirect through a reverse proxy. It's already working for several other websites, all which have a base url which seems to counter this issue. GitLab in this example is on the…
Jake Edwards
  • 267
  • 1
  • 2
  • 9
11
votes
3 answers

Can Puppet File Source be from a web service?

Is there a (simple) way to have puppet use a file available on the internet for the Source property of a File? eg: file { "/home/text.txt": source => [ "http://www.example.com/text.txt", ] }
gunwin
  • 6,400
  • 3
  • 19
  • 22
11
votes
3 answers

Is it safe to use HTTP status 308 Permanent Redirect?

Is it safe to use the HTTP status code 308 Permanent Redirect (suggestion) in server responses? The issue with 301 Moved Permanently is that it only works with GET requests (to be fair: POST will transform to GET which is NOT an option). The status…
burnersk
  • 2,056
  • 5
  • 27
  • 39
11
votes
3 answers

What is HTTP COOK request method in my logs?

I'm seeing entries in my Apache logs like the following 178.216.185.210 - - [24/Feb/2014:11:46:40 -0500] "COOK /freesearch.php?portal=0a9&... HTTP/1.0" 303 589 "-" "Mozilla/4.0 (compatible; Synapse)" with COOK in place of the usual GET or…
toxalot
  • 273
  • 2
  • 4
  • 10
11
votes
2 answers

Git push over http (using git-http-backend) and Apache is not working

I have desperately been trying to get push for git working through the "smart-http" mode using git-http-backend. However after many hours of testing and troubleshooting, I am still left with error: Cannot access URL http://localhost/git/hello.git/,…
Nils Magne Lunde
  • 553
  • 3
  • 12
11
votes
9 answers

Who can eavesdrop on a user's HTTP traffic?

I have heard many times that HTTPS should be used for transferring private data, since HTTP is vulnerable to eavesdroppers. But in practical terms, just who is capable of eavesdropping on a given surfer's HTTP traffic? Their ISP? Other people on the…
RexE
  • 379
  • 1
  • 5
  • 11
11
votes
2 answers

Nginx - Serve static content from a cookieless domain

I'm using the "page speed" extension for Firebug to try to optimise a website and I'm currently working on the following suggestion: "Serve static content from a cookieless domain". I have created a separate sub-domain for some content so that I…
Tom
  • 4,277
  • 11
  • 42
  • 52
10
votes
1 answer

Windows Server 2012 R2 IIS 10 / HTTP/2

We're currently running Windows Server 2012 R2 for our web server, using IIS 8.5. Is it possible to upgrade that to IIS 10 for HTTP/2 or otherwise enabled HTTP/2 on our current install? Thanks, Matt.
Matt Cowley
  • 265
  • 2
  • 3
  • 11
10
votes
3 answers

Is it safe to serve HTTP/HTTPS over ports 8080/8443

Due to an infrastructure limitation, one of the proposed solutions for serving an HTTP service to the world is to offer it over ports 8080 and 8443. My concern is that some users may not be able to access these services because they are not running…
spender
  • 368
  • 1
  • 3
  • 13
10
votes
2 answers

How can I tell which server I've been load balanced to?

I want to test some configuration changes to one-way synchronisation between two servers that sit behind a load balancer (this is all Rackspace Cloud infrastructure FYI). The problem I have is that I can't tell which server I've been load balanced…
Willl
  • 203
  • 1
  • 2
  • 7