1,354 reputation
610
bio website steve.org.uk
location Edinburgh, United Kingdom
age 38
visits member for 5 years, 3 months
seen Sep 27 at 6:01

Aug
30
comment Directory deleted after server reboot
I personally use /mnt/backups, /srv/backup is also good. "It depends" is the short answer.
Jul
22
comment NTP is not updating the time in local machine
In that case your question is unclear, and best rephrased.
Jul
10
comment Detecting in a script whether apache2 root is /var/www or /var/www/html
Indeed unless there is only a single vhost - which you could determine via grep,etc - your best course of action is to add some rewrite/alias rules to cover both cases, or ask the user.
Mar
13
comment Redirect all subdomains to main domain with lighttpd and regex
Sounds like you need to use curl or similar to see precisely what is happening with the redirection. But I think the code above is correct, and any remaining problems will be Django-issues.
Mar
13
comment Redirect all subdomains to main domain with lighttpd and regex
Updated with an explicit reference to mod_redirect, and tested on a simple host. Should be OK now.
Jan
13
comment Nginx redirecting domain to port 8000 with a 301
That output looks suspiciously like it was called from wordpress - so I'd check on the settings there, if you installed it when running on port 8000, before updating DNS, then it'll remember that ...
Oct
11
comment Remote_Addr doesn't work after apache upgrade
Are you sure? nginx will set the headers, but Apache won't know about them. If you have magic-code that checks the headers I could believe it, but most code just uses ENV{'REMOTE_ADDR'} and apache won't update that without mod_rpaf, or mod_headers.
Oct
9
comment How do I make the server response faster on search results (WP, nginx, apc)
For searching that is unlikely to help; since people won't search for the same thing multiple times. Certainly it will help for overall responsiveness though.
Sep
29
comment cannot set a virtualhost name with nginx
If the MIME-type is wrong that is because nginx doesn't recognize the extension. Fix that by either using "types" inside nginx, or updating the mime.types file that nginx is using - probably /etc/mime.types.
Sep
23
comment hidden all files public_html! but how?
I use a node.js server to serve a website, it will happily return HTML, JSON, and PNGS. You're really not giving us enough information to go on so I'm afraid you're not likely to get an answer.
Sep
23
comment hidden all files public_html! but how?
node.js runs as a server. apache runs as a server. WHICH ONE is returning the 404s?
Aug
17
comment exim instances like feature
Doesn't really change my answer too much. In short php->exim4. exim4->smart-host. If that second step fails it'll be queued and will be retried. I'd suggest just updating the retry times to try every 5-10 minutes, and avoiding the complexity. If your smarthost is down then something is broken pretty badly anyway ..
Apr
13
comment Varnish is slow to start with a large ACL
Cheer for that - because I'm running a cluster it is hard to keep iptables in sync, whereas I can commit a global blacklist.vcl to revision control and deploy that easily. Regardless I might have to explore this further.
Jan
2
comment apache vhost config so that _default_ goes to another IP
Damn timezones, sorry I wasn't around earlier. Glad you got there in the end though!
Oct
14
comment Cyrus IMAP: Unable to connect to remote host: Connection refused
You'll probably not have iptables in your PATH - run "/sbin/iptables --list -n", as root, to absolutely confirm that there is no firewall.
Oct
14
comment Installing checkinstall on x86_64 bit
Agreed. You should look at your apache error log to see why it is serving 500 errors.
Oct
7
comment Apache 2.4 subdomain setup fails
True, but it will work. Using a VirtualHost as above the first one will always win on the same IP.
Sep
15
comment Dynamically set current domain in nginx with perl module
I think you need to explain this "complicated environment", rather than what you think you need. Two answers here satisfy your stated requirements, but you blew them off without a good explanation of why they fail.
Sep
11
comment Virtual Host vs rewrite for subdomain
Not convinced. If you do a rewrite in .htaccess that'll be slower. If you do it in the apache config it still needs to be read and might generate an internal second request - depending on the nature of the redirect.
Aug
28
comment using mdadm, can I add a mirror raid over network for backup purposes?
Then you should make sure you have good backups - all single-servers fail, and if you cannot schedule an outage then you'll find a world of pain sooner or later.