Reputation
3,849
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
4 17 39
Newest
 Good Answer
Impact
~551k people reached

Nov
12
comment nginx rewrite rule
You need to redirect every subdomain except host and www. I've already said that the right move will be making 2 server {} directives one matching ~ ^(www|host)\.domain\.com$ and other !~ ^(www|host)\.domain\.com$ but it'll be less customizeble i.e. you can't add any other domain to such configuration.
Nov
6
comment NGinx Best Practices
also access_log off; for those locations is common practice
Nov
3
comment Install Apache22 in parallel to existing Apache13 installation on FreeBSD
Yeah, I was opening this thread to say something about chroot or jail, but you've got it first =)
Nov
3
comment nginx rewrite rule
Check now. Is it suitable for you?
Oct
31
comment Linux md vs. LVM performance
did you tried tests like bonnie++?
Oct
28
comment net.inet.tcp.blackhole option on Fedora
Removed freebsd tag
Oct
25
comment Routing table hits?
Added Windows to tags, for Windows guru to notice the question
Oct
24
comment Command to output panic/reboot history in FreeBSD
I think it's linux-specific
Oct
21
comment FreeBSD with nginx can't connect networks after running for a while
Yeah, that's might be good suggestion. Grep /var/log/messages for something like watchdog time out and other messages from your NICs' drivers
Oct
20
comment FreeBSD with nginx can't connect networks after running for a while
pf have state table that can overflow: use pfctl -sa and watch LIMITS
Oct
20
comment FreeBSD with nginx can't connect networks after running for a while
mbufs, open files, somaxcon etc... there is too many limits in OS that you can bump in.
Oct
18
comment Problem with GWT behind a reverse proxy - either nginx or apache
i think nginx has some different behavior depending on closing slashes in proxy_pass directive, so you can play with it
Oct
7
comment FreeBSD Traffic Shaping
post config please.
Oct
2
comment What permissions / ownership to set on PHP Sessions Folder when running FastCGI / PHP-FPM (as user “nobody”)?
1. Use same user:group for nginx and php-fpm (via either nginx.conf or php-fpm.conf), so you can keep this directory 700. 2. Use chown -R nginx:nobody /var/lib/php/session && chmod -R 770 /var/lib/php/session so i think both nginx and php-fpm can use it
Sep
30
comment Isolating a computer in the network
MACs can be easily spoofed.
Sep
30
comment I'm designing a system to handle 10000 TCP connections per second, what problems will I run into?
UDP has it's drawbacks, like sender and delivery verifications, so one should consider them before using UDP in production.
Sep
29
comment Upgrade FreeBSD ZFS system to larger drives
IMO, drive-by-drive migration from 250Gb drives to 2Tb is the best way to increase raidz capacity
Sep
11
comment Disable compression for Nginx serving PDFs
nginx has add_header directive ( wiki.nginx.org/NginxHttpHeadersModule#add_header ). You can place it under location ~ \.pdf$
Sep
1
comment Freebsd Box hangs on boot loader
First specify version and architecture of FreeBSD you are trying to load. Then explain when/afterwhat it happened for the first time?
Aug
27
comment How to install DHCP server on FreeBSD 7.2?
as you can see here ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/… the only available is isc-dhcp30-devel.tbz