Showing posts from September, 2010

Determine script name behind a mod_rewrite

Qouted from here :

0x32353031 said...

determining the script name is pretty easy.
just a lil trick to use:; echo -ne "POST /blog/category/webappsec/books/ HTTP/1.1\nHost: $H\nConnection: close\nContent-length: x\n\n" | nc $H 80 | less

note the content-length field's value... its invalid :P

This will produce a simple HTTP/1.1 413 Request Entity Too Large, with a common 413 error message/html followed by the site's code.

take a closer look...

HTTP/1.1 413 Request Entity Too Large
Date: Mon, 20 Sep 2010 14:56:41 GMT
Server: Apache
Connection: close
Content-Type: text/html; charset=iso-8859-1

html head
title 413 Request Entity Too Large /title
head body
h1 Request Entity Too Large /h1
The requested resource br / /blog/…

Unable to set up mailbox quota for this domain: setDomainDiskQuota() failed: mailmng failed: Invalid index. (COM Error 8002000B)

Error while updating Limit for a spesific domain in PLESK 8.2.0 Windows

Googled, and found this:


cd %plesk_bin%
mchk --all --fix=all


in my case, that was not the solutions actually.. what happen was, the domain has reached its expiry date, thus PELSK auto suspend. But when it suspends, it actually disabled the mail service as well, SOOOOO, what you have to do actually is,

1) Go to Mail > Enable
2) Limits > Set expiry date
3) Switch On.



Two domains, 1 hosting, domain alias, and $_SERVER['SERVER_NAME']

One hosting, and have two domain, one primary and one more alias.
But the alias is only to be pointed into one of the subdirectory, and main domain hppy as it is.


public_html/ <- main domain take from here
-- dir1/
-- dir2/
-- 2nddomain/ <-- domain alias from here
--- index.html
-- dir3/
- index.php

So, in root directory, in this case public_html/ create index.php as below:

if ( $_SERVER['SERVER_NAME'] == "")

Ok. Good luck.