Most Popular
1500 questions
291
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
290
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,107
287
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,046
287
votes
7 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,664
- 5
- 26
- 26
286
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,132
286
votes
5 answers
Redirect, Change URLs or Redirect HTTP to HTTPS in Apache - Everything You Ever Wanted to Know About mod_rewrite Rules but Were Afraid to Ask
This is a Canonical Question about Apache's mod_rewrite.
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:
Changing HTTP to HTTPS (or the…
Kyle Brandt
- 85,693
286
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,769
286
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,445
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
285
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
- 2,997
- 2
- 17
- 6
281
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,849
279
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
- 7,953
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
277
votes
6 answers
How to assign permissions to ApplicationPoolIdentity account
In IIS 7 on Windows Server 2008, application pools can be run as the "ApplicationPoolIdentity" account instead of the NetworkService account.
How do I assign permissions to this "ApplicationPoolIdentity" account. It does not appear as a local user…
Triynko
- 3,438
277
votes
160 answers
Useful Command-line Commands on Windows
The aim for this Wiki is to promote using a command to open up commonly used applications without having to go through many mouse clicks - thus saving time on monitoring and troubleshooting Windows machines.
Answer entries need to…
dance2die
- 2,051