502 reputation
11024
bio website ninjawars.net
location New York, NY
age 34
visits member for 5 years, 7 months
seen 7 hours ago

I make a ninja game at ninjawars.net, am hirable at bitlucid.com, do crazy art when I can at dnaexmosn.deviantart.com, and code open source stuff on github at github.com/tchalvak

Code in:

  • php
  • javascript
  • html/css

Want to code in: - Clojure

Want to code on: - node.js

aka Tchalvak


Mar
11
comment Logwatch configured for nginx with custom log format gives empty output
This post was a good resource: blog.shlrm.org/blog/2012/05/09/adding-nginx-to-logwatch-output
Mar
10
comment MAILTO is not working for CRON. How can I fix this?
possible duplicate of How to change "From:" field for emails from Cron?
Feb
23
comment How do I configure the default email sender properties on a debian server?
Part of what ended up causing my problem is that only authorized users are allowed to send out via my rackspace smarthost, so I had to make sure that whoever the default send-out user was, the /etc/email-addresses alias mentioned below by coredump handled that fake user, and re-aliased it to a real user who the smarthost would truly accept. In my case it was being sent out as www-data@mydomain.com because the www-data user was in control of the php scripts that were trying to send email. Alias www-data to webadmin@mydomain.com and they started being delivered.
Feb
11
comment No space left on device error, but df reports as more space available
I wasn't able to delete /tmp directly, same as I wasn't able to ls /tmp, but I was able to mount the filesystem temporarily elsewhere and -then- it allowed me to delete & remake the /tmp directory. I just mv'ed the old directory to /tmp_damaged since I actually wasn't able to rm & delete it either.
Feb
1
comment No space left on device error, but df reports as more space available
nods I'll try this approach sometime next week.
Feb
1
comment No space left on device error, but df reports as more space available
@kasperd Added that info to the original post. And it is indeed ...insane in terms of comparitive size. I'm not really sure what to do with that information, though.
Jan
30
comment No space left on device error, but df reports as more space available
@utrecht Ah, yes, apache2 on this server.
Jan
30
comment No space left on device error, but df reports as more space available
@utrecht This is on a Debian server.
Jan
30
comment I set up a web application server, and a separate server for postgres on the same network. How should I secure the connection?
Ah, yes! So I can just use username & password authentication with a ufw firewall set to reject all connections not validly made from one of my two web servers. This sounds like the easiest to deal with, as ufw makes firewall administration easy for me. Thanks.
Jan
30
comment I set up a web application server, and a separate server for postgres on the same network. How should I secure the connection?
Is setting the dbserver1 postgresql.conf to listen only to the ips of appserver1 (and any future additional app servers) not enough?
Jan
30
comment I set up a web application server, and a separate server for postgres on the same network. How should I secure the connection?
Yes, exactly so, it's an "internal network" for rackspace servers, which means god knows who could be on there! Damn, I have to set up a VPN just to securely connect to my database on a separate server? sighs I've never messed with a VPN before.
Jan
30
comment I set up a web application server, and a separate server for postgres on the same network. How should I secure the connection?
Ah, right, I'm using rackspace, and I'm connecting via a rackspace internal network IP, but since rackspace is, like, a cloud-server provider with some million users or servers or whatever, I'm not sure that it's best practice to trust even such an internal connection.
Nov
14
comment nginx / fpm and PHP_VALUE not working
Based on that bug, it may be an escaping issue for some reason.
Oct
16
comment How to set a favicon.ico for a specific Virtual Host on Nginx?
The permissions issue fixed it for me as well!
Sep
19
comment Tried to deny access to apache /server-status module with certain exceptions, but it became exposed everywhere
Hmmm, seemed promising that allow locations might be space delimited instead of comma+space delimited, but in actuality it didn't make a difference.
Aug
20
comment Apache: Stealth 404 the admin area until authenticated via basic auth, then allow access
There are two advantages that I can see to not providing the basic auth password & username on every admin url: 1: brute forcing of the basic auth cannot be done until the wp-adminsecretlogin/ url is accessed, and since that url will be a custom one for the site/blog network, that would require prior knowledge of the login url and would generally require tailoring the attack to the unique site/blog network. 2: Returning 404 will mask the standards signals to bots that a wordpress admin section is present, to discourage the frequent brute force scripting attempts that tend to occur.
Aug
6
comment Dealing with development subdomains
Note that apache 2.4 requires .conf on the end of virtualhosts for them to work, which is what caused me the problem a second time. Found the documentation for the change in: vi /usr/share/doc/apache2/NEWS.Debian.gz
Jul
11
comment What are the correct permissions for /etc/init.d/ scripts?
This is giving execute permissions to world (what?) and group (ok, sure). Why would that ever be a good thing, or necessary in this case?
Jul
3
comment Apache VirtualHosts define php.ini but extend main php.ini
See also: serverfault.com/questions/34078/…
Jul
1
comment UFW logs blocked request on open port, what am I missing?
Well, this really makes logging stuff from iptables/UFW pointless, thanks for the clarification.