Most Popular
1500 questions
113
votes
8 answers
How to install/change locale on Debian?
I've written a web application for which the user interface is in Dutch. I use the system's date and time routines to format date strings in the application. However, the date strings that the system formats are in English but I want them in Dutch,…
Hongli Lai
- 2,262
113
votes
8 answers
What does this nginx error "rewrite or internal redirection cycle" mean?
tail -f /var/log/nginx/error.log
2013/05/04 23:43:35 [error] 733#0: *3662 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 127.0.0.1, server: _, request: "GET /robots.txt HTTP/1.1", host:…
pavs-maha
- 1,133
113
votes
6 answers
How to let 'cp' command don't fire an error when source file does not exist?
I'm using Mac OS X.
I'm trying to copying some files with cp command for a build script like this.
cp ./src/*/*.h ./aaa
But this command fires an error if there is no .h file in ./src directory.
How to make the command don't fire the error? (silent…
Eonil
- 10,649
112
votes
6 answers
how to create a cron job that runs on the first day of month
There are fields on my server's control panel like this
Minute - Hour - Day of month - Month - Day of the week - Command
How can I create a cron job runs on first day of the month with this fields?
Utku Dalmaz
- 1,369
- 2
- 14
- 18
112
votes
9 answers
What is a good SSH server to use on Windows?
In my spare time I remotely support my wife's office via VPN into a Windows Server. I am about to purchase a wireless broadband service which doesn't support VPN.
I don't want to open up the remote desktop ports directly, and I would like to set up…
Bruce McLeod
- 1,748
112
votes
85 answers
Linux command line best practices and tips?
I would like to open a discussion that would accumulate your Linux command line (CLI) best practices and tips.
I've searched for such a discussion to share the below comment but haven't found one, hence this post.
I hope we all could learn from…
Maxim Veksler
- 2,805
112
votes
2 answers
How to do the port forwarding from one ip to another ip in same network?
I would like do some NAT in iptables. So that, all the packets coming to 192.168.12.87 and port 80 will be forwarded to 192.168.12.77 port 80.
How to do this with iptables?
Or
Any other ways to achieve the same?
sat
- 1,323
- 4
- 13
- 14
112
votes
8 answers
Setting the "Expires" HTTP header for static content served from Nginx?
I'm using nginx to server my static content, is there a way that I can set the expires headers for every file that meets a specific rule? For example can I set the expires header for all files that have an extension of '.css'?
Unkwntech
- 1,759
- 4
- 19
- 24
112
votes
7 answers
How to restart nginx?
For me, I run "killall nginx" and start it by "sbin/nginx", anyone has a better restart script?
BTW: I install nginx from source, i do not find 'service nginx' command or /etc/init.d/nginx
larry
- 4,107
112
votes
12 answers
How do I prevent apache from serving the .git directory?
I have started using git for deployment of websites for testing. How do I prevent apache from serving the .git directory contents?
I tried
Order deny,allow
Deny from all
with no success.
I know that…
Shoan
- 1,745
- 5
- 17
- 23
112
votes
13 answers
How can I tell what version of IIS is installed?
I've got a box running Win2k3 and some directions from Microsoft KB about SSL certificates, for IIS 5.0 and 6.0. How can I tell which version of IIS is currently installed?
jldugger
- 14,462
111
votes
16 answers
How do I find if there is a rogue DHCP server on my Network?
What's the best approach towards determining if I have a rogue DHCP server inside my network?
I'm wondering how most admins approach these kinds of problems. I found DHCP Probe through searching, and thought about trying it out. Has anyone had…
l0c0b0x
- 12,037
111
votes
6 answers
Windows Server restart / shutdown history
How can I easily see a history of every time my Windows Server has restarted or shutdown and the reason why, including user-initiated, system-initiated, and system crashed?
The Windows Event Log is an obvious answer but what is the complete list of…
JohnC
- 2,644
111
votes
8 answers
Why does my OpenSSH key fingerprint not match the AWS EC2 console keypair fingerprint?
When I import my OpenSSH public key into AWS EC2's keyring the fingerprint that AWS shows doesn't match what I see from:
ssh-keygen -l -f my_key
It is a different length and has different bytes.
Why? I'm sure I uploaded the correct key.
Craig Ringer
- 11,243
111
votes
3 answers
How long before an s3 bucket can be created with same name after deletion?
Title is quite explanatory, but I have just deleted an s3 bucket as it was in the wrong region and am wanting to recreate it in the correct region with same name as the just deleted one.
Is there any documentation of this or user experience?
ljs.dev
- 1,284
- 2
- 9
- 15