| Hotlink Prevention 1 hour ago by ipcron Add the following lines in the domain’s .htaccess file. RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png)$ – [F] You can refer the link below for further information. http://www.thewebhostinghero.com/tut ... IPCRON - ipcron.wordpress.com |
| 哥提供的不是免费空间 是无聊/寂寞 2 hours ago by 棋子 哥提供的不是免费空间 是无聊+寂寞 每个人 都会有自己想做 但是却因为各种原因,一直没去做的事 我就是这样 提供免费空间的想法 真的很久了, 也和别人讨论过 倒不是因为收入和支出 而是如何有效的让申请的人利用起来 这个我感触比较深 很多申请免费空间的人 其实并不是真的要免费空间 而是申请来放着 占个位 有的缺德点的 就转手卖 很多人申请了 放那里不用 也有的上传个页面 挂着 占个位置 美名其曰 测试稳定性, 这样的事我遇到的多了 不停的申请新的 不停的滥用 滥用主要体现在x类 诱惑页什么的 然后导致ip被封 这类的问题经常性遇到 收费的也有 门户通大家都知道 提供的免费空间有广告 但是用的人 ... 棋子棋子 - blog.cnlabs.net |
| Apache: how to disable directory listing 2 hours ago by Mohammed Disable directory listing using httpd.conf: * Open your httpd.conf and look for “Options Indexes” * Change “Indexes” to “-Indexes” if it exists. * Or else add “Options -Indexes” as a new line * Restart your apache webserver Disable directory listing using .htaccess:- * Open your .htacces file and lo ... Mohammedz.com - mohammednv.wordpress.com |
| How to set password protection for a directory 3 hours ago by ipcron 1. Create a .htaccess file AuthName “Password protected” AuthType Basic AuthUserFile /path/to/the/directory/.htpasswd require valid-user 2. Create a .htpasswd file under the account using this command htpasswd -c .htpasswd your-user-name and give the password 3. Make sure the permission of file .htp ... IPCRON - ipcron.wordpress.com |
| Restart httpd if load goes above 5 4 hours ago by ipcron Add the following lines in a file and set it as cron to run every 5 minutes. #!/bin/bash loadavg=$(uptime | awk -F “.” ‘{ print $1 }’ | awk -F “:” ‘{ print $5 }’) if [ "$loadavg" -ge "5" ]; then pkill -9 httpd sleep 3 /scripts/restartsrv_httpd fi that’s all IPCRON - ipcron.wordpress.com |
| Installation of Java + Apache Ant 4 hours ago by ipcron cd /opt mkdir java cd java wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=29210 or wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=29214 mv jre-6u13* jre-6u13-linux-i586.bin chmod 755 jre-6u13-linux-i586.bin ./jre-6u13-linux-i586.bin /opt/java/jre1.6.0_13/bin/java -version I ... IPCRON - ipcron.wordpress.com |
| Setting SSL with Apache 2.x on Windows 9 hours ago by luckylarry Pretty similar to setting up SSL on unix/linux and actually not that hard to do. Just a few things to remember as a checklist. If your Apache install didn’t include openSSL then you’ll need to download a few things: Normally you can find mod_ssl.so in your apache install directory in modules. In con ... Lucky Larry's - luckylarry.wordpress.com · 1 reference |
| Créer des sous domaines avec Apache2 sur une Dédibox sous Ubuntu 9 hours ago by Pinpon Bon j'ai pas mal galérer avant de réussir à configurer Apache2 correctement alors je vais me faire un pense-bête ici : 2 étapes : Configurer les DNS dans la console Dédibox Modifier le fichier de conf d'Apache2 1- Dans la console, onglet "Mes domaines" et dans le menu "Administration des noms de dom ... Le blog de Pinpon - pinpon.eu/index.php? |
| mod_vhost_alias が普及しない理由 10 hours ago by admin バーチャルホストが多くなってくると、同じ設定を繰り返すことが無駄に思えて自動化・構造化したくなってくるのが人の情というもの。 バーチャルホストを動的に割り当てる方法には、mod_rewrite で強制的に割り当てる方法と、mod_vhost_alias を使う方法があるけれども、返す環境変数がそれぞれ異なってしまう問題がある。 http://sub.example.com を /home/exmaple.com/plublic_html/sub/ に割り当てる際のバーチャルホスト設定として、下記の3種の方法を試し、その際に返すDOCUMENT_ROOTを取得してみた。 (1) Virtual ... 横浜鯖缶日誌 - pandora-lab.com |
| Apache troubleshooting tips 10 hours ago by Jack Wallen How many times have you installed a LAMP server only to find Apache doesn’t seem to want to run right? Or you install a new module only to see Apache try to download pages as file, instead of displaying them on screen? There are a hundred and one thousand things that can go wrong with any web server ... gHacks technology news - ghacks.net · Rank: 889 · 1982 references |