Slashdot Log In
Why I Hate the Apache Web Server
Posted by
Zonk
on Fri Jul 22, 2005 07:47 PM
from the feel-the-hate-flow-through-you dept.
from the feel-the-hate-flow-through-you dept.
schon writes "Today's the last day of ApacheCon Europe; There was a hilarious presentation entitled 'Why I Hate the Apache Web Server' for anyone who has expressed frustration with the various inconsistencies and nuances of the Internet's favourite config file. And yes, it includes a comparison to Sendmail."
This discussion has been archived.
No new comments can be posted.
Why I Hate the Apache Web Server
|
Log In/Create an Account
| Top
| 558 comments
(Spill at 50!) | Index Only
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Whoops (Score:4, Insightful)
(Last Journal: Wednesday September 07 2005, @06:09PM)
Re:Whoops (Score:5, Funny)
(http://slashdot.org/ | Last Journal: Wednesday January 29 2003, @02:50AM)
Coral Cache [nyud.net] of the PDF...
Re:Whoops (Score:5, Funny)
(Last Journal: Tuesday September 25, @04:26AM)
Re:Whoops (Score:4, Informative)
(http://otc.dyndns.org/game/)
Really, the version in KDE >=3.4 is incredible.
News for nerds (Score:5, Funny)
Wow, you ain't fuckin kidding, are ya?
Re:Whoops (Score:5, Informative)
(http://www.kill9.eu/)
When you click on a pdf it displays a choice of opening it in a new tab, downloading it , or viewing it as HTML (which i think uses google, but i could be wrong because i never use this option)
It really saved me.
Why I hate PDFs (Score:5, Funny)
Here is a html version, [samurajdata.se] I doubt it will stay cached for very long though.
Re:Why I hate PDFs (Score:4, Informative)
Those PDF's again... aaargh (Score:3, Insightful)
(http://www.mitavittua.com/ | Last Journal: Saturday January 03 2004, @06:38AM)
And no, I didn't RTFA, which was in fact TFPDF.
Re:Those PDF's again... aaargh (Score:5, Insightful)
I suspect most people here are able to position the cursor over the article link and look in the status bar, note the .pdf at the end of the URL, and know that this is a PDF.
Assuming they are able to do it is one thing. Expecting them to do it every time they follow a link is another thing entirely.
Re:Those PDF's again... aaargh (Score:4, Informative)
Re:Those PDF's again... aaargh (Score:5, Informative)
(http://robots.org.uk/)
a[href$=".pdf"]:after {
font-size: smaller;
content: " [pdf]";
}
I also find the following useful:
{
font-size: smaller;
content: " [new]";
}
a[href^="javascript:"]:after
{
font-size: smaller;
content: " [shite]";
}
Re:Those PDF's again... aaargh (Score:5, Insightful)
(http://pe.ter.dk/)
It's not like it's a HTML page with a lot of process consuming javascript, java-that-requires-a-lot-of-loading-of-the-java-e
Instead you choose to be annoyed. I don't get it.
Re:Those PDF's again... aaargh (Score:5, Informative)
Why I Hate The Apache Web Server
Lessons learned from IRC - Rich Bowen
Note: Opinions expressed are those of our users, as expressed on IRC. The goal of this talk is to make people aware of things which those "outside" see as problems, but which we tend to be so used to that we don't see at all. If I get carried away, feel free to throw fruit.
Why do I hate thee? Let me count the reasons.
- Fragile
- Confusing
- Missing stuff that EVERYONE asks for
Fragile
- Breaks easily. Small changes have big resultsThe first of these forbids Indexes. The second one permits them. Huh?
Disclaimer
"But that's not supported syntax!"
Then it should throw an error and break, not do something utterly unexpected. Unfortunately, several major Linux distros ship with this broken-but-almost-looks-right configuration, or variants thereof
Example 2
Vhosts
Discussion
"But the docs say not to do that!" Yes, I know. I wrote that line in the docs. It's still really irritating.
Another
Missing (asked daily on IRC)
- Can I set a variable and use it later?
- Can I have an if/else syntax?
- Can I please reload my configuration file without restarting my server?
- How do I make ServerTokens return "Bob's Handy Dandy HTTP Server"? (Yes, this is silly, but it would sure shut a lot of people up finally.)
What else? mod_imap: how many of you have actually used that module? How many of you who are not committers know what it does? Why is it on by default? Come on folks. Netscape added client-side image maps in 1995!
And while we're on the topic mod_cern_meta: Who even knows what this module does? For the record, yes, I do. But I doubt any of you have ever used it.
CONFUSING
NumServers ServerLimit ThreadLimit ThreadsPerChild StartThreads StartServers MaxSpareThreads MinSpareServers MaxSpareServers MinSpareThreads MaxClients MaxThreadsPerChild MaxRequestsPerChild MaxRequestsPerThread ThreadStackSize
Oh sweet God make it stop
What's that directive called?
RLimitMem, RLimitCPU, RLimitNProc? I have to look these up every time. Of course, since they don't seem to do what the docs say, maybe that's not a bad thing.
Am I running out of time yet?
- Why do I have to set up two separate vhosts for http://example.com/ [example.com] and https://example.com/ [example.com] when they're the same website?
- Why are dynamic vhosts so darned hard?
- Why doesn't the default configuration file match the "security tips" document?
mod_rewrite
I probably don't need to say anything more than just "mod_rewrite". But I will: "Voodoo" and "... flexibility of sendmail". The docs practically scream "GO AWAY!"
RewriteMap
Nice, but have you ever found an actual useful example? Oh, and the example script for generating db map files doesn't actually work. (Note: Paul fixed this 2 weeks ago. See httxt2dbd)
How about this?
If I want these two aliases to work, I have to:
Some more (Score:4, Interesting)
First, we have this [apache.org].
And a quote from the default config file:OK. So I'll define as follows:Then, we have this [w3.org].
OK, so I have some legacy documents, so I'll just define as follows in <HEAD>:And let's try it out... WTF?? It does not work! My browser thinks it is UTF-8.
Oh wait, it actually works, if I'll define this instead of that above:Brilliant! So if the AddDefaultCharset is defined in httpd.conf, the Content-Type encoding of the actual document must be defined in lowercase, or it'll be ingnored! Now, where the f*** this is documented??! Examples at w3.org specifically uses uppercase. Apache permits uppercase in httpd.conf.
Apache messed it up again.
A 666KB PDF... (Score:5, Funny)
You might hate Apache but.... (Score:5, Insightful)
Re:You might hate Apache but.... (Score:5, Insightful)
If one user wants mod_perl, one wants php, and one wants mod_ruby, you pretty much have to have different webservers running, which means an administrative hassle and separate IPs.
There are a couple solutions I can think of:
(1) Change unix user permissions after it's selected a vhost, but before running any code or accessing files. Not just for CGIs, either, but modules.
(2) Make it easier to run seperate webservers as if they are one. Basically take the administrative hassle out of running multiple webservers.
Right now ISPs basically just offer PHP and use safe mode. But that doesn't help other languages, and it's basically a php hack.
It would also be nice if problems with one vhost didn't prevent the entire server from reloading the config. It should give a nasty error maybe, but the webserver shouldn't shut down the working vhosts, at worst it should leave it as it was before the reload.
Maybe, maybe not (Score:4, Informative)
1) Bandwidth. Whatever if being offered is large enough that the line it's on becomes highly over saturated and thus requests are processed very slowly, if at all.
2) CPU load due to dynamic content. Sites that use databases, or scripts to create their pages or something get overwhelemed because they don't have enough CPU to support all the requests.
The webserver itself isn't the problem. Either Apache or IIS can easily saturate a 100mb link with static content, even on a fairly old server.
When I worked for the school paper and we were linked, it was no problem at all. The line was 10mb, and the content was fairly small (say 300-500k total) and all static. Despite being a P2 300 the server didn't even break a sweat, load average was below 1. When the department I now work at was receantly linked for a comet simulator, it killed out webserver, despite the content being about 2k and it being a fiarly fast SPARC machine. The reason was each request required computation, so our load average was about 100.
Apache being able to survive a
Bandwidth is actually fairly common, many servers are run on small lines. I have a couple servers in my closet on my 768k up line. That is plenty for normal usage, people find the sites quite zippy. However Slashdot would easily overwhelm that bandwidth.
Re:is this the internet ? (Score:5, Insightful)
What does piss me off is:
- People who use PDFs to make read-only documents
- People who use PDFs where html or text is adequat and sufficient.
I don't see why they require me to lauch that hateful Acrobat Reader when a browser does a better job.
Comic Sans is..... (Score:5, Funny)
Christ, stop complaining about the PDF (Score:5, Insightful)
Complaining about PDFs is like complaining about HTTP cause you don't like IIS.
Re:Christ, stop complaining about the PDF (Score:5, Funny)
Re:Christ, stop complaining about the PDF (Score:5, Funny)
(http://ursine.ca/~baloo/ | Last Journal: Saturday August 12 2006, @01:47AM)
Pony (Score:3, Funny)
"Not yours."
Hilarious? (Score:3, Insightful)
Otherwise I'd define it "sadly realistic"...
How to fund Apache improvements (Score:5, Interesting)
(http://www.school.net/)
Apache is great but it could be *significantly* easier for beginning webmasters. And for companies to fund changes.
The 2G file limit... (Score:4, Insightful)
(http://www.neothermic.com/ | Last Journal: Monday June 05 2006, @07:29PM)
However, its the 2G file limit that makes me laugh. Sure, there's LFS (Configure 1.3 with CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64", enabled by default in 2.0.53 (and higher) and in 2.1), but to be really honest, there are far better ways to send large files. HTTP isn't one of them. There's FTP and there's also torrents; Both of which have the advantage of being designed for files rather than 'hypertext', which by nature is normally text...
NeoThermic
Re:The 2G file limit... (Score:5, Insightful)
Re:The 2G file limit... (Score:5, Insightful)
Wow, beautiful (Score:5, Funny)
(Last Journal: Wednesday June 23 2004, @04:53PM)
Couple of comments (Score:3, Informative)
The basic auth logout: yes, people have been asking for it for years, but it's HTTP itself that doesn't provide a mechanism for logging out users, it's not Apache's fault.
The lax syntax: hell no. That sort of thing leads to security holes. If I make a typo, I'm perfectly capable of going back and fixing it, should Apache notify me immediately. But if it misinterprets a typo as meaning something I didn't want, I won't know about it until it bites me in the ass. There is nothing wrong with strict syntax for config files.
The rest are relatively sane complaints and ones I've said myself in the past. Even if they are contained in a godawful PDF.
Re:Couple of comments (Score:5, Insightful)
This one baffled me as well. How could you have a "logout" function in a stateless protocol? Logins don't persist beyond the fulfillment of a single request. The storing of a username and password for HTTP authentication is implemented on the client side, it has nothing to do with the web server or even the protocol. Complain to Microsoft/Mozilla/Opera Software or whoever makes your browser if you don't like it.
This is what the open source community needs... (Score:5, Insightful)
(http://syn.cs.pdx.edu/~jsnow | Last Journal: Sunday July 11 2004, @08:36PM)
I'm also a big fan of the "Grumpy Editor's Guide" series of articles at Linux Weekly News.
Why I hate the Apache Web Server (Score:5, Funny)
(Last Journal: Thursday January 06 2005, @12:42PM)
Re:Why I hate the Apache Web Server (Score:5, Funny)
Install Apache (1.3 or 2.0) on Windows sometime. If you open up Computer Management (quite possibly the best and maybe even the only good feature of Windows) and go to the Services section, you'll find Apache in the list. Select it. Now, at the top of the window, there's a button with a "play" arrow. Click it. Wow! Apache started! Next to that, there's a "stop" square. Next is a "pause" double bar. Last in line is a "restart" square/arrow combo. All of these work with Apache.
Another poster mentioned the Apache Service Monitor tool. It's handy if you have more than one server around, since it lets you control them remotely without hassle. It too has the start/stop/restart buttons.
And again, on Windows... Look in your Start menu. Apache creates a program group during installation that contains a Control Apache Server folder, in which you'll find some batch files... One for Stop Apache Server, one for Start Apache Server, and one for Restart Apache Server.
There are plenty of "stupid" ways of running apachectl -whatever in Windows. But only the first one above allows you to right click and go to properties. And guess what you find in that properties window... Yeah. [Start] [Stop] [Pause] [Resume] - More buttons. But only stupid newbies would use those, right?
(Before you reply to this assuming that I'm serious, I'd like to present you with a gift: A nice, shiny, new electric sarcasm carving knife.)
Thanks for the laugh and the PDF (Score:5, Insightful)
(http://kalak.dhs.org/ | Last Journal: Saturday March 12 2005, @04:12PM)
I'm glad to see that someone who works with the project has some of the same frustrations I do:
mod_imap - why does anyone still need this?
http and https needing seperate entries in vhost
vhosting in general
And to those whining about PDFs would you rather to have this posted in a PPT file? Comic Sans probably means Powerpoint is at the root of this. And I'm guessing he didn't need to put the out there, so he picked a format everyone can read without resorting to PowerPoints horrible html conversion. I hate PDFs, and really hate them viewed in the browser, but that's what "save as" is for. And I'll bet you didn't have to go get a viewer just to read this. There is no pleasing the Slashbots who would rather whine about a PDF than take the criticism in stride, and with the humor it was presented in. If you have to whine about the delivery, then you're too childish to pay attention to the message. He may not have OpenOffice installed at his work (there are places who don't allow that), and this may have been the best he could do under reasonable effort.
I'd prefer his effort go into the server than in giving us an HTML page rendered just for us. He could use that time to fix some of the annoyances! Some have better things to do than to please everyone.
And I say we give him a pony!
No supprise (Score:5, Insightful)
I got in to that some time ago over audio apps in Linux. I mentioned that one of the reasons I run Windows is pro audio work, Linux just doens't have the tools. I was told ya it does, so I asked like what? I mean hey, maybe they know something I don't, I'm always looking for new tools. No, I get pointed to the same ones I've tried. So I talk about what is wrong with them, why I don't like them. In response basically every flaw is downloayed, denied, blamed on me, or declared to be "a better way of doing things".
Zealots, of whatever type, want to believe their product/way of life/whatever is the best there is. Thus when presented with real criticism, they are likely to either ignore it, or try and change the argument to something else.
If you don't like it, Fork it! (Score:3, Insightful)
Due to the Open Source nature of apache, anyone who is ready to actually improve apache (in ways that the apache people potentially don't like and won't accept into the code) can fork apache and make their own even-easier-to-configure web browser.
Also remember that functionality comes before user friendliness. It should be no suprise there are warts on the config syntax, just be glad the damn thing works at all! If you want a real taste of ugly, go use IIS or (shudder) Weblogic. You'll run back to apache so fast your legs will fly off.
As apache matures even more, no doubt these warts will eventually get addressed. Maybe some kind of little task force will even form with this goal in mind.
And this is one of the WORST parts of OSS (Score:5, Insightful)
I mean you have to remember, that most of the people in the world CAN'T, even if they want to, because they aren't coders. The majority of the population, well over 90%, does not know how to program. It's stupid to say they should learn how to. The whole point of specialization of labour is that peopel dont' ahve to do everything. Coders code, other peopel use what they make.
Then, of the few that can code, most don't have the time. It's a serious undertaking to make major changes to make major changes to a codebase, and it's really har dwhen it's not yours. You have to spend a lot of time just in learning what the fuck is going on and hwo it all works, before you can start making changes. Well, most coders can't do that, espically for every product they happen to use. There a fixed amount of time, and most of us have most of it taken up by more important things (like a paying job, family time, housework, etc).
Then, even if you do have the ability and time, it's not always easy. I'd not the guy that gave this presentation is an Apache developer, so he IS putting his money where his mouth is. It's just pretty clear that making tha fixes isn't some little 1 hour coding job, it's some major work that needs to happen.
So really, people who want to push OSS shouldn't take this isntantly hostile "Well fix it yourself!" attitude. Problems should be listend to, and should be fixed when possible. When it's not, the reasons should be explained why, and the person should be helped to figure out how ot work with what they have as best as possible.
Oh, and having configured both IIS and Apache, IIS wins hands down. Easy GUI config, options do what you think they do, plenty of context sensitive documentation. That's not to say it's a better web server, and sure as hell not more secure, but when it comes to configuration, that's just no contest.
Look you lot, he's not some ignorant ranter. (Score:4, Insightful)
(http://www.geocities.com/tenbaset2/)
He's just pointing out some of the sillyness to his own teammates that apache has that people that are involved with and use apache get used to. (And, even if it is documented, that doesn't mean it's not silly.)
mod_imap? Why is that still on by default, for example.
As for the PDF complaints, THIS IS A PRESENTATION AT A CONFERENCE. What would you have perferred? A PPS file? Those that complain about the fonts? Get over yourselves.
My Biggest Request (Score:4, Insightful)
(http://seventhcycle.net/)
Why can't apache's configuration file be XML compliant? It would make life sooo much easier if it were.
It would be sooo much easier to parse and validate the configuration file if it actually conformed to SOME kind of standard.
For that matter, why not use some limited XSL syntax in order to handle conditions?
What about this one? (Score:3, Insightful)
Perchild MPM, which lets apache run as the user owning NN vhost has been all-but dropped. [apache.org]
A few other guys have (kind of) picked it back up again, [metux.de] and gotten it to (mostly) work, but it doesn't scale well, yet... (barfs at 256 hosts)
Why can't somebody get this to work? (I would, but I'm not a c coder)
Evil PDF (Score:3, Funny)
General-purpose config file parsing (Score:5, Insightful)
(http://marnanel.org/ | Last Journal: Thursday January 18 2007, @03:21PM)
This problem is *everywhere*. Why are we still putting up with differently-designed config files for your webserver, your ftp server, your mailserver, your nameserver and heaven knows what else, all supported by their own pieces of custom code which, like Apache's, each have the possibility of growing up to be subtly wrong?
I know the Windows idea of a centralised registry sucks in too many ways (inscrutable binary is no match for human-readable text files), but there's one thing it's got right: all the apps which access their configuration use a consistent API to do so. Is it an impossible dream to hope that someone gets a bunch of large free software projects to agree on what needs to go into a libconfigparse, then implements it, and provides bindings for major languages? Then we might stand a chance of avoiding weird config file problems cropping up in Apache and everywhere else, slightly differently each time.
As a consultant (Score:3, Interesting)
(http://cisco-configs.com/)
Seriously though, for a lot of tasks these days I use the more lightweight thttpd [acme.com] daemon. Uber-simple config files, very low overhead, supports per-URL throttling out of the box. It's superb for image servers, or pretty much any application where you don't need dynamic pages - and believe me, there are still plenty of places you don't need dynamic code.
General remarks (Score:3, Informative)
(http://www.apacheadmin.com/)
Thanks for all the great feedback from folks about my complaints and examples. Yes, it was more than a little tongue-in-cheek, and several of these problems have in fact already been fixed - a couple of them right there are the conference.
And, I'm not *just* complaining. I fixed the "Require User" case sensitivity thing, and I'm rewriting the mod_rewrite docs.