Most Popular

1500 questions
294
votes
5 answers

What's the difference between IP address 0.0.0.0 and 127.0.0.1?

I know that 127.0.0.1 ~ 127.255.255.254 are the loopback IP addresses for most modern operating systems, and these IP addresses can be used to refer to our own computer. But what's 0.0.0.0? It seems it also refers to the local computer, so what's…
Jichao
  • 3,147
291
votes
2 answers

Linux command to inspect TXT records of a domain

Is there a linux shell command that I can use to inspect the TXT records of a domain?
learningtech
  • 7,819
291
votes
8 answers

how to download the ssl certificate from a website?

I want to download the ssl certificate from, say https://www.google.com , using wget or any other commands. Any unix command line? wget or openssl?
RainDoctor
  • 4,714
290
votes
7 answers

How do I view the details of a digital certificate .cer file?

I am using Windows and have been given a .cer file. How can I view the details of it?
yazz.com
  • 8,103
290
votes
15 answers

Finding out what user Apache is running as?

I want to secure a file upload directory on my server as described beautifully here, but I have one problem before I can follow these instructions. I don't know what user Apache is running as. I've found a suggestion that you can look in httpd.conf…
Anna
289
votes
2 answers

Do systemd unit files have to be reloaded when modified?

Let's say I write a mine.service file. Then I use systemctl enable mine.service . If I later decide to edit mine.service , do I have to tell systemd that mine.service was changed? If so, how do I do that?
425nesp
  • 3,162
289
votes
3 answers

Moving an already-running process to Screen

My office job routinely sees me connected to a Linux box via VNC. Sometimes I start a remote job on the console, and realize later that it runs much longer than expected. (Should have started that one under Screen in the first place...) I don't want…
DevSolar
  • 3,066
289
votes
5 answers

Redirect, change URLs or redirect HTTP to HTTPS in Apache httpd - Everything you ever wanted to know about mod_rewrite rules, but were afraid to ask

This is a canonical question about the Apache HTTP Server’s URL rewriting module . Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite . This includes such things as:…
289
votes
12 answers

List all DNS records in a domain using dig?

My company runs an internal DNS for mycompany.example There is a machine on the network that I need to find, but I’ve forgotten its name. If I could see a list, it would probably jog my memory. How can I list all of the domain records for…
Runcible
  • 3,495
288
votes
3 answers

What is archive mode in rsync?

I know you can use -a or --archive to activate archive mode when using rsync. Unfortunately, I have no idea what archive mode is supposed to do, and the man page is not at all explicit about what this is: equals -rlptgoD (no -H,-A,-X) Can you…
allyourcode
  • 3,027
  • 2
  • 18
  • 6
286
votes
9 answers

How do I add Access-Control-Allow-Origin in NGINX?

How do I set the Access-Control-Allow-Origin header so I can use web-fonts from my subdomain on my main domain? Notes: You'll find examples of this and other headers for most HTTP servers in the HTML5BP Server Configs projects…
Chris McKee
  • 3,899
285
votes
13 answers

Can I nohup/screen an already-started process?

I'm doing some test-runs of long-running data migration scripts, over SSH. Let's say I start running a script around 4 PM; now, 6 PM rolls around, and I'm cursing myself for not doing this all in screen . Is there any way to "retroactively" nohup a…
ojrac
  • 2,953
279
votes
5 answers

Can you pass user/pass for HTTP Basic Authentication in URL parameters?

I believe this is not possible, but someone I know insisted that it works. I don't even know what parameters to try, and I haven't found this documented anywhere. I tried http://myserver.com/~user=username&password=mypassword but it doesn't work.…
ripper234
  • 6,322
278
votes
45 answers

What are the obstacles to providing reliable Internet access and Wi-Fi at large tech conferences?

Every tech conference I've ever been to, and I've been to a lot, has had absolutely abysmal Wi-Fi and Internet access. Sometimes it's the DHCP server running out of addresses. Sometimes the backhaul is clearly inadequate. Sometimes there's one…
Joel Spolsky
  • 3,686
278
votes
6 answers

How to reply with 200 from Nginx, without serving a file?

I have configured Apache to send back a 200 response without serving any file with this configuration line Redirect 200 /hello Can I do this with Nginx? I don't want to serve a file, I just want the server to respond with a 200 (I'm just logging the…
Theo
  • 3,035