Archive for the ‘Linux Misc !!’ Category
-
Apache Server Status & Error Codes !!!
Apache Server Status & Error Codes !!!
Successful Client Requests
200 OK
201 Created
202 Accepted
203 Non-Authorative Information
204 No Content
205 Reset Content
206 Partial Content -
How to check and close your open DNS servers ?
Open DNS servers
1) Go to http://www.dnsreport.com/tools/dnsreport.ch?domain=mydomain.com
2) Check for BIG RED “FAIL” (7th box, going down from up) saying “Open DNS servers”.
If you see the message, you can correct it the following way:
1) login to your server as root
2) nano -w /etc/named.conf (if you are running Bind)
3) Look for // query-source address * port 53; [...] -
self signed certificate for ftpserver !!
To create a self-signed certificate, you can use the following commands :
mkdir -p /etc/ssl/private
openssl req -x509 -nodes -newkey rsa:1024 -keyout \
/etc/ssl/private/pure-ftpd.pem \
-out /etc/ssl/private/pure-ftpd.pem
chmod 600 /etc/ssl/private/*.pem -
Optimizing host.conf
Optimizing host.conf
#!/bin/sh
cp /etc/host.conf /etc/host.back
echo “# Lookup names via DNS first then fall back to /etc/hosts.” > /etc/host.conf
echo “order bind,hosts” >> /etc/host.conf
echo “# We have machines with multiple IP addresses.” >> /etc/host.conf
echo “multi on” >> /etc/host.conf
echo “# Check for IP address spoofing.” >> /etc/host.conf
echo “nospoof on” >> /etc/host.conf -
How do I manually move an account to another server?
When an account is too large to feasibly move using the web browser, I do the following to move the account :
The setup :
Domain : domain.com
Username : dom
make a temp directory on /home (i’ll call it /home/cptemp/) where you can store the accounts files while copying.
#mkdir /home/cptemp
Almost all space for an account is in their [...]