User account menu

  • Log in
BXTra.net

[HOW-TO] Prevent Hotlink in Drupal 6 + Nginx

By BXTra | 12:52 AM PST, Tue February 15, 2011
Drupal
Nginx

I have searched around how to prevent hotlink in Drupal when use with Nginx. A lot of website saying the same what to do. However, I have tried all of them but not even one of them that work. That was strange. I started to try more until this... I found the only method that work for me. Oh... one more thing... don't put them under "location" rule or it won't work. That took me half an hour to figure it out :(

Nginx Vhost configuration file - working config to protect hotlink

  • Read more about [HOW-TO] Prevent Hotlink in Drupal 6 + Nginx
  • Add new comment

[HOW-TO] Prevent Hotlink in Drupal 6 + Apache

By BXTra | 12:37 AM PST, Tue February 15, 2011
Drupal
Apache

As far as I can remember, to prevent hotlink in Drupal is not that easy. If you search website to look for prevent hotlink, you will find a lot of them to use with .htaccess file. But those are not for Drupal. You can't just use it in Drupal .htaccess file, that won't work. However, I have a set of code that work great. Actually, I have this code long time ago but I can't remember where I got it from. Thanks for the guy that provide it. Too bad that I didn't save link at that time.

So, now, here is what we have to do :

  • Read more about [HOW-TO] Prevent Hotlink in Drupal 6 + Apache
  • 7 comments
  • Add new comment

[HOW-TO] Config Nginx to work with Drupal 6

By BXTra | 6:41 PM PST, Mon February 14, 2011
Drupal
Nginx
DirectAdmin
Yesterday, I've tried to setup Nginx as a Reverse Proxy for Apache - Worker MPM base webserver. I found that it doesn't help my server performance as I expected. So, I decided to try to set up Nginx to be a Webserver to see if Nginx can give me a better performance or not. I found a sample set up for Drupal website on Nginx web and it looks like it's pretty easy to set it up. So, I tried it. Just copy the code below into your configuration.
  • Read more about [HOW-TO] Config Nginx to work with Drupal 6
  • 1 comment
  • Add new comment

[HOW-TO] Install mod_rpaf for Apache 2.2

By BXTra | 11:59 PM PST, Sun February 13, 2011
Nginx
DirectAdmin
CentOS
Apache

When you do a reverse proxy in which Nginx will be the one who listen the traffic and forward anything needs to be process through PHP to Apache. With this, Apache will always receive an IP from Nginx server (or I should say localhost / 127.0.0.1 / local IP), not the real IP that user uses. In order to let Apache knows what is real user IP, we need to install mod_rpaf.

Just copy and paste code below into SSH :

  • Read more about [HOW-TO] Install mod_rpaf for Apache 2.2
  • 2 comments
  • Add new comment

[HOW-TO] Use Nginx as a reverse proxy for DirectAdmin

By BXTra | 9:45 PM PST, Sun February 13, 2011
Nginx
DirectAdmin

I try to use Nginx as a reverse proxy to see if there is any improvement over Apache Worker MPM or not. I found an instruction from DirectAdmin webboard but it's quite old. So, I just tried to follow their steps and do some modification to match what I have read. Below is what I did

1. You need to compile Nginx. Nginx version 0.8.54 is the lastest stable release as of today. So, just copy and paste below code into your SSH

  • Read more about [HOW-TO] Use Nginx as a reverse proxy for DirectAdmin
  • 8 comments
  • Add new comment

[HOW-TO] Use "mod_fastcgi_handler + PHP-FPM" instead of "mod_fastcgi + PHP-FPM" (Less code to work on)

By BXTra | 7:41 PM PST, Fri February 11, 2011
DirectAdmin
FastCGI
PHP-FPM
I have read about mod_fastcgi_handler which I think it will help me to write less code to work on PHP-FPM. Checked their website, even they say it's beta quality and there are a couple bugs. I still think I should try it. So, below is what I did to replace mod_fastcgi with mod_fastcgi_handler. 1.
  • Read more about [HOW-TO] Use "mod_fastcgi_handler + PHP-FPM" instead of "mod_fastcgi + PHP-FPM" (Less code to work on)
  • Add new comment

[HOW-TO] DirectAdmin - Run Apache with "mod_fcgid on PHP 5.2 / 5.3" and "mod_fastcgi + PHP-FPM on PHP 5.3" on the same server

By BXTra | 7:01 PM PST, Tue February 08, 2011
FastCGI
PHP-FPM
DirectAdmin
PHP Opcode Cache
XCache
APC
This guide [ Run Apache with "mod_fcgid on PHP 5.2 / 5.3" and "mod_fastcgi + PHP-FPM on PHP 5.3" on the same server in different Virtualhosts ] has 3 parts altogether. So, you may need to take a look at 2 other parts as well :

1. [HOW-TO] DirectAdmin with mod_fcgid
2. [HOW-TO] Enable and setup PHP-FPM in DirectAdmin (PHP 5.3)
  • Read more about [HOW-TO] DirectAdmin - Run Apache with "mod_fcgid on PHP 5.2 / 5.3" and "mod_fastcgi + PHP-FPM on PHP 5.3" on the same server
  • 2 comments
  • Add new comment

YUM - remove cache of mirror URL to be able to switch to a new one.

By BXTra | 11:59 PM PST, Wed February 02, 2011
CentOS

I just tried to install CentOS on local machine and found that when I ran 'yum install', it will always go to specific mirror url that is so slow. I know there is some cache to tell yum to use it but I don't know where on it. Try to search in google but many problem comes up that didn't relate to what I want to fix. Until I found a link below tell me where is yum cache file located. Just run command below :

  • Read more about YUM - remove cache of mirror URL to be able to switch to a new one.
  • Add new comment

[HOW-TO] Enable and setup PHP-FPM in DirectAdmin (PHP 5.3)

By BXTra | 11:08 PM PST, Tue February 01, 2011
DirectAdmin
PHP-FPM
PHP Opcode Cache
FastCGI
XCache
APC

I've heard about PHP-FPM about a month ago from DirectAdmin webboard. Then, a few weeks ago, I had a couple websites that I need to make it run faster. After tried to do many things with it like ... to use mod_fcgid / XCache / Memcached, I feel like there was something in XCache since "Page execution time" is quite high. Then, I remember that I've read from many websites that XCache doesn't really work with mod_fcgid. From the technical point, all of them explained it clearly to understand.

  • Read more about [HOW-TO] Enable and setup PHP-FPM in DirectAdmin (PHP 5.3)
  • 7 comments
  • Add new comment

[HOW-TO] Drupal 6 : Add additional "Add Comment" link into the node

By BXTra | 6:37 PM PST, Tue January 18, 2011
Drupal
Just edit node.tpl.php and insert code below to anywhere you want :

<?php
print l(t('Add Comment'), 'comment/reply/' . $node->nid, array('fragment' => 'comment-form'));
?>

Make sure that , 'comment/reply/' part is relative to your path. If you access your website through www.myweb.com/web. Then, that part would be , 'web/comment/reply/'
  • Read more about [HOW-TO] Drupal 6 : Add additional "Add Comment" link into the node
  • 5 comments
  • Add new comment
Pagination
  • First page « First
  • Previous page ‹ Previous
  • …
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Current page 11
  • Page 12
  • Page 13
  • Page 14
  • Page 15
  • …
  • Next page Next ›
  • Last page Last »

  • Will the router get the Openvpn as a client option?
    6 years ago
  • cancellation
    6 years 1 month ago
  • Router ASUS RT-N12 D1 tomatoes passwort falsch
    7 years 8 months ago
  • WPS button = 30/30/30 hard reset button
    7 years 9 months ago
  • Save my day!
    8 years 3 months ago
  • How to
    8 years 6 months ago
  • Can i still access my modem (the one with the ISP provided)?
    8 years 6 months ago
  • A saving step!
    8 years 10 months ago
  • Problem with Asus n12e-c1
    8 years 11 months ago
  • don't use Hostgator
    9 years 2 months ago

© 2007 - 2023 BXTra.net. All Rights Reserved. 
Certain other content, photos and artwork displayed on BXTra.net are protected by copyright and are the property of their respective owners.

Privacy Policy