Thiago Figueiro
  • Member for 12 years, 6 months
  • Last seen more than a month ago
3 answers
7 votes
23k views
Use Varnish Cache only on-disk
11 votes

There are 2 main ways Varnish caches your data: to memory (with the malloc storage config) to disk (with the file storage config) You are asking for #2. In this method Varnish will always write the ...

View answer
1 answers
3 votes
13k views
how to increase "open files" limit for process from 1024 to 10240
Accepted answer
6 votes

You will need root access to increase it. If you're using Ubuntu (also works for other distros): http://ubuntuforums.org/archive/index.php/t-521287.html If you're using bash, the command is 'ulimit -...

View answer
2 answers
0 votes
496 views
How can one run tomcat as root?
4 votes

Leave tomcat running as a non-privileged user, enable a JK connector, run apache on port 80 and use mod_jk to have it talk to tomcat. This guy below wrote instructions for tomcat 6 but the same ...

View answer
4 answers
1 votes
527 views
Enabling apache options based on a request header
4 votes

Have you tried re-writing the URL internally to a location that you can configure the way you want? Something like this: RewriteCond %{HTTP:MyHeader} .+ RewriteRule (.*) $1/special [R,L] <...

View answer
2 answers
4 votes
4k views
Crontab /etc/profile.d
3 votes

Set SHELL on your crontab: SHELL=/bin/bash * * * * * # your_job

View answer
1 answers
2 votes
2k views
Strange code in server access log
Accepted answer
3 votes

They are non-printable characters in the HTTP request. It could be someone trying to exploit your server or as harmless as a request containing multi-byte unicode characters. The Apache ...

View answer
2 answers
2 votes
3k views
server-side browser emulator? open source preferably
3 votes

Have you looked at Selenium?

View answer
2 answers
6 votes
7k views
How to make Varnish ignore, not delete cookies
3 votes

By default Varnish doesn't cache requests with a Cookie header: http://varnish-cache.org/svn/trunk/varnish-cache/bin/varnishd/default.vcl sub vcl_recv { (...) if (req.http.Authorization || req....

View answer
1 answers
2 votes
1k views
varnish: Alter response body
3 votes

Wouldn't it be easier to replace the bit of the body you want changed with an ESI tag?

View answer
1 answers
2 votes
892 views
Tomcat virtual host configuration
Accepted answer
3 votes

You need a virtual host name alias. <Host name="www.mydomain.com" ...> ... <Alias>mydomain.com</Alias> ... </Host>

View answer
2 answers
4 votes
2k views
Why does apache's mod_status extended status slow down the server?
2 votes

It needs to compile, store and keep track of extra statistics. I haven't read the code but my gut tells me it uses a bit more memory and considerable more CPU cycles.

View answer
2 answers
0 votes
66 views
linux source installation
2 votes

The latter: ./configure --enable=abc --enable=xyz Depending on the software you may need to do a make clean before re-running ./configure.

View answer
7 answers
11 votes
10k views
How can I manage apt efficiently on multiple machines?
2 votes

Have a look at clusterssh (apt-get install clusterssh): $ cssh server1 server2 server3 ...

View answer
1 answers
1 votes
2k views
How to disable ip_forward for Ubuntu server
1 votes

Part 1 - Update sysctl.conf Edit /etc/sysctl.conf, add the line below: net.ipv4.ip_forward=0 Make sure there are no other ip_forward lines in the file or under /etc/sysctl.d: grep -r ip_forward /...

View answer
3 answers
3 votes
1k views
Is there any way to query Apache server for a list of virtual hosts?
1 votes

From the command line you could use apachectl -S; the output is similar to the below. $ apachectl -S VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:443 ...

View answer
2 answers
-1 votes
318 views
Hostname appearing in email header
1 votes

You could change the helo_name setting but, as noted by DandyPandy, receiving SMTP servers will still reverse look-up your MTA's IP address and make note of it. http://www.manpagez.com/man/5/postconf/...

View answer
1 answers
1 votes
547 views
Varnish send while cache
1 votes

This is still not supported. The latest version 2.1.2 will receive the whole response from the backend before sending it to the client. I hear it's coming soon though. Keep an eye on the varnish-...

View answer
2 answers
0 votes
2k views
Varnish configuration, NamevirtualHosts, and IP Forwarding
1 votes

You don't need to enable IP Forwarding on the varnish server for it to work. Varnish will not forward the client connection but, as a proxy, create a new connection on the user's behalf. If you can ...

View answer
2 answers
0 votes
218 views
I keep getting this when typing in nslookup. I`m also having problems connect desktops to domain
0 votes

Your computer can't reach the default DNS servers, which are defined as: DNS Servers . . . . . . . . . . . : 107.7.59.210 207.230.75.50 Change it so the DNS ...

View answer
1 answers
0 votes
166 views
Apache url rewrite and redirect
0 votes

In the VirtualHost config for www.example.com: RewriteEngine on RewriteRule ^/$ /main [R=301,L] RewriteRule ^/info$ http://info.example.com [R=301,L]

View answer
2 answers
3 votes
3k views
Varnish does not start properly (crashes after startup) with no error messages
0 votes

Upgrade to 2.1.2 http://sourceforge.net/projects/varnish/files/ You can probably use alien to install the RPM version (as a test) and then change the Debian package stuff from 2.0 to create a 2.1.2 ....

View answer
2 answers
5 votes
10k views
Varnish configuration to only cache for non-logged in users
0 votes

I can't comment so I'm posting this as an answer. Attention: As of 2.1.0, obj.* is called beresp.* in vcl_fetch, and obj.* is now read-only. These also seem better placed in vcl_recv instead of ...

View answer
4 answers
0 votes
1k views
VirtualHosts with wildcard Domain Names subdomain.*
0 votes

You cannot use wildcards with ServerName. What you can do is use the default VirtualHost as a catch-all: <VirtualHost *:80> # NEVER add a ServerName in this VirtualHost (...) </...

View answer
4 answers
2 votes
241 views
How can I automatically ban an IP requesting the same file too often?
0 votes

Play with something like this: iptables -I INPUT -p tcp --dport 80 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 -j DROP

View answer
9 answers
0 votes
199 views
How to removed server file/folder?
0 votes

Look for an application that lists your currently open files and by what process (a "lsof" for windows if you will) Once you find the process that's holding the file open you can kill it and try to ...

View answer
12 answers
22 votes
24k views
Viewing logs on a remote linux server
0 votes

Try this: ssh servername tail -f /var/log/messages If your log file is protected: ssh -f servername sudo tail -f /var/log/messages (you don't have to use "ssh -f" - it's just so your password is ...

View answer