Archive for the Category » хостинг «

Have you previously realised that www is redundant? If so, I’m preaching to the converted and you can run along back to whatever you were busy with. 😉 Otherwise, stand to attention, soldier!

begin rantish text:

When I’m browsing the web, I’d much less prefer to type “www.xkcd.com” than “xkcd.com”. Reason being that if *every* site has to have w’s, what’s the point of the w’s? Not to mention that they’re a bitch to pronounce. There’s 9 syllables in there! You couldalmosthalve that by saying “triple-w”. I’ve heard people say “dub dub dub”. Bleh. Even theWorld Wide Web Consortiumprefers to call themselves “W3C”.

So what exactly is (was?) the point of the www? There might be more to it, however the gist of it appears to be that whenTim Berners-Leefirst created the hypertext document retrieval system, he called it “World Wide Web”. I believe that www became a standard not because it made sense or because it was a good idea, but because it was hyped far beyond the healthy respect it deserved.

Your web browser *knows* you’re dealing with web content solely by the fact that there’s an http:// in front of the url. Therefore I submit, the www is redundant.

Need more convincing?

Search engines see www.dogma.swiftspirit.co.za and dogma.swiftspirit.co.za as 2 separate web sites. Because both sites have identical content, search engines might lower your Search Rankings. Hell, you’d be competing against yourself for rankings. Silly example: instead of 3rd, you might be 5thи 7th. For this reason, it is better to either force www or to force no www. I’m in favour of the latter.

[edit] So much for that. It turns out thatopensslis able to determine that the key and certificate are already in a single file. Therefore, nocsplitting required (добре, I hope somebody reading this at least learned about how nice csplit is). In fact, the whole script might as well be obsolete… blaargh. Well, at least it gives a nice warning about not giving a blank passphrase. 😀

Here’s the new version:

pem2pfx – converts a .pem-formatted file containing a private key and signed certificate into a Windows-compatible .pfx certificate file.

The relatively new document typesОфис 2007has given some web hosts problems when their clients want to offer documents for download. Most often, the documents are being offered by the web server as“text/html”which is then rendered as a ton of garbage on the web user’s screen.

The best way to resolve this is to add all theMIMEtypes to the server’s main configuration. IIS7 for Windows already has these MIME types set up correctly by default. IIS6 and IIS5 require the MIME types to be added, as mightApacheon older installations. For Apache, there is also a workaround for the individual domain owner to add the mime types via Apache’s.Htaccess досие.

IIS 6 MIME type addition (for the Server Administrator)

Before this can be done, ensure that your server is also set to allow direct metabase editing:

Within the “Internet Information Services” tab (usually the only tab), ensure that the “Enable Direct Metabase Edit” checkbox is checked.

Click [OK]

Be sure toback up IIS’s configuration (тукfor IIS5) beforehand. I won’t take any responsibility for an admin breaking his server. I have reason to believe thismayalso work on IIS5 however I have just as much reason to believe that it might just give lots of errors. If an IIS5 / Windows 2000 admin is willing to test this for meafter backing upyour configuration please let me know of the results.

Copy the following text into a file named msoff07-addmime.vbs and execute itoncefrom the commandline by typingcscriptmsoff07-addmime.vbsand pressing Enter. If you run it more than once, the MIME types will be added each time and you will have multiple identical entries:

Apache MIME type addition (for the Server Administrator)

Apache stores its MIME types in a file normally located at$installpath/conf/mime.types. See the mod_mimedocumentationfor more on how it works. Arch Linuxinstalls its MIME types at/etc/httpd/conf/mime.types и Parallels Pleskinstalls it in/usr/local/psa/admin/conf/mime.types. Your distribution might have it in another place, so find yourmime.typesfile by runninglocate mime.types.

ShowIP (using a version modified for work purposes – displays company server’s canonical name when browsing) – 10

I cannot imagine the hell I’d have to go through to identify a server without this plugin. Okay, I can. Used to have to do this all the time. I eventually scripted it but I can’t find the original script. Here’s my 60-second attempt at recreating what was in that script:

I used this once to diagnose some issues with a page. I don’t do much web development so I’m going to remove this one. Нейната никакъв коментар от своите възможности, тъй като смятам, че това е топ ниво добавка ако правиш много работа уеб програмиране.

Some of you may already know that I built a home server not too long ago. I documented some of the very important parts of how it was built though I was planning on releasing all the documentation all at once. I was using Arch Linux and I hadn’t nearly finished everything, especially the documentation. Например, it was supposed to be a media server. After some disk shuffling, it was supposed to end up having aRAID1for the boot andRAID 10for the rest (the media part).

I got as far as having an efficient (и добре–firewalled) routing gateway server. I was finally satisfied that the customised local routing* was working correctly and I was confident that my tests withDHCPmeant I could disable the DHCP service on the flimsyADSLrouter and have all myflatmatesstart using the server as the Internetврата. Instead: I was logged in to the server from the office, I’d just installed Apache2**, and I was about to consult with a colleague regarding getting nice graphs put together so the flatmates could all see who was using up the bandwidth*** — when I noticed a little message indicating that the root filesystem had been remounted read-only due to some or other disk failure.

And then I lost my connection to the server.

And then I gained a foul mood.

🙁

When I arrived home, I found that, as I had guessed from the descriptive message given at the office, the (много) old 80GBIDEdisk that I was using for the root filesystem had failed. Unfortunately, the server would never boot again and there was little chance of prying everything off onto another disk to continue where I’d left off.

I’m buying a replacement (SATA) HDD this next weekend just after pay day – and I’ve changed my mind about documenting my progress… and backing up my configurations:

* ISPs in South Africa charge less (easy pricecomparison) for “local-only” (within South Africa) traffic on ADSL but only if you use an ADSL account that CANNOT access web services outside of South Africa. This means that if you want to take advantage of the reduced costs but still be able to access the Internet at large, you need to set up some sneaky routing.

** one-command-install: ~$ yaourt -S apache

*** Internet Access in SA is expensive – you get charged about R70 ($7 / £4.9 / €5.46) per GB when using ADSL, or about R2 per MB if using GPRS / 3G.