I'm thinking of running a Kareha board but my VPS is running nginx and as far as I can tell .htaccess bans won't work. Is there any way around this limitation? The only things I can think of are very inefficient and would probably get me laughed off the board, so I thought it'd be a good idea to ask you guys before making myself look like too much of an idiot.
Thanks in advance.
Well, if you can block IPs by adding commands to some config file, you could just edit the path and format it writes.
But I know nothing about nginx.
nginx doesn't support dynamic configuration, unfortunately. I wanted to do this, and ended up "solving" the problem by simply reverse proxying Apache behind nginx.
>>3
That sounds even more inefficient than just running Kareha on Apache. Am I wrong in making that assumption?
So have the script kill -HUP nginx when the config changes.
>>4
Yes, you're wrong. Apache craps out during large boosts in traffic, and it's vulnerable to Slowloris attacks. Reverse proxying Apache behind nginx solves both these problems.
>>6
Maybe I don't understand exactly what 'reverse proxy' means. Do you mind explaining exactly what this entails?
>>7
It means, in this case, that nginx faces the public internet and passes on requests to a local Apache server. I'm not entirely sure about the details, but switching to this setup enabled my site to handle large upsurges in traffic, as well as attacks.
>>8
Huh. Somehow running two servers at once just seems like it would put quite a strain on a cheap VPS, which is the reason why I wanna use nginx in the first place.
I kind of banned myself. how do you unban your own ip address? I have been using tor to access it lately