Most Popular
1500 questions
64
votes
4 answers
How to change sshd port on Mac OS X?
I want to change which port sshd uses on a Mac server. For example, let's say from port 22 to port 32.
Editing /etc/sshd_config does not seem to work. Does anyone know how to change it? I'd prefer a method that's compatible with all OSX versions…
Alexander Artemenko
- 1,393
- 3
- 13
- 13
64
votes
4 answers
Is there a maximum size for content of an HTTP POST?
Is there a maximum size for an HTTP POST? And if there is a max size, is it determined by the protocol or is it at the discretion of the server?
user11480
63
votes
4 answers
Purpose of Debian "sites-available" and "sites-enabled" directories?
Can anyone tell me—in a nutshell—what the purpose of these two directories are in Debian?
/etc/apache2/sites-enabled
/etc/apache2/sites-available
I notice that diffing sites-available/000-default and sites-enabled/default shows they are…
aaaidan
- 732
- 1
- 5
- 8
63
votes
1 answer
Server Aliases on NGINX
I'm moving a site to a new server running on NGINX. The old site's Apache2 VirtualHost has ServerAlias configured that I want to replicate in the NGINX configuration.
From what I've read on the NGINX Docs this seems to be simply achieved with…
Holly
- 1,027
- 5
- 14
- 25
63
votes
9 answers
Is it OK to set up passwordless `sudo` on a cloud server?
I love the idea of accessing servers via keys, so that I don't have to type in my password every time I ssh into a box, I even lock my user's (not root) password (passwd -l username) so it's impossible to log in without a key.
But all of this…
Dmitry Pashkevich
- 713
- 1
- 5
- 11
63
votes
8 answers
Deploying a folder of template files using ansible
Is there an easy way to deploy a folder full of template .j2 folder to a linux box, using the same name as the template, but without the .j2 extension, rather than using the template module for each file?
Right now i have a long list of:
- name:…
Trololololol
- 733
- 1
- 5
- 6
63
votes
12 answers
Loopback to forwarded Public IP address from local network - Hairpin NAT
This is a Canonical Question about Hairpin NAT (Loopback NAT).
The generic form of this question is:
We have a network with clients, a server, and a NAT Router. There is port forwarding on the router to the server so some of it's services are…
adopilot
- 1,521
- 6
- 25
- 41
63
votes
10 answers
Can I run a cron job more frequently than every minute?
Is it possible to run a cron job every 30 seconds without a sleep command?
user15336
- 783
- 1
- 5
- 8
63
votes
5 answers
How to delete domain user profile from a computer?
I'm wondering how to safely remove a domain user profile from a computer that is a part of a domain. I don't want to delete the account from the domain itself, I just need to remove the profile from this computer, to do some cleanup.
I'm currently…
Zlatko
- 1,011
- 2
- 11
- 21
63
votes
8 answers
How to change owner of mount point
We have moved mysql data directory to another disk, so now /var/lib/mysql is just a mount point to another partition. We set the owner of the /var/lib/mysql directory to mysql.mysql.
But everytime we mount the partition, the ownership changes to…
Arie K
- 1,633
- 5
- 19
- 27
63
votes
7 answers
Best Practices in Username Standards: Avoiding Problems
I'm interested in finding out what people's experiences with standard usernames is. I've always been in places that used {firstInitial}{lastname} (sometimes with a length-limit). Now I've users that want {firstname}.{lastname} - and now it comes up…
Mei
- 4,590
- 8
- 45
- 53
63
votes
10 answers
How to extinguish a small fire in a server rack to minimize damage to surrounding equipment?
Suppose I have a rack with several servers and other stuff. One of servers overheats severely and either starts smoking or catches fire while there's a serviceman nearby.
If anything similar happens in an apartment and there's a fire extinguisher…
sharptooth
- 2,739
- 4
- 32
- 40
63
votes
3 answers
How to install libpq-dev on Centos 5.5
In order to develop one web application based on postgresql, i need to install libpq on my centos.
I can install it by "apt-get install libpq-dev" on ubuntu, but i can not install it on centos by "yum install libpq".
Who can tell me how to install…
larry
- 4,037
- 9
- 36
- 42
63
votes
2 answers
Multiple "ServerName" per VHost?
In Apache2 is it possible to set multiple ServerNames in one VHost?
I want to setup a "wiki" vhost for an internal wiki.
My network has a ".lan" suffix. How do I get Apache to answer both "wiki" and "wiki.lan" on the same vhost?
Soviero
- 4,366
- 8
- 36
- 60
63
votes
14 answers
Why would you use IPv6 internally?
Of course, I realize the need to go to IPv6 out on the open Internet since we are running out of addresses, but I really don't understand why there is any need to use it on an internal network. I have done zero with IPv6, so I also wonder: Won't…
KCotreau
- 3,381
- 3
- 20
- 24