Description
This function removes a rewrite from a Ruby application.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Return |
Type |
Description |
Possible values |
Example |
appname |
string |
Required The Ruby application's name. |
A valid string. |
Test |
rewritedomain |
string |
Required The Ruby application's domain. |
A valid domain name. |
example.com |
rewriteurl |
string |
Required The Ruby application's rewrite location. |
A valid string. |
test |
Returns
Return |
Type |
Description |
Possible values |
Example |
appname |
string |
The Ruby application's name. |
A valid string. |
Test |
domain |
string |
The domain name. |
A valid domain. |
example.com |
statusmsg |
string |
Ruby's status. |
|
Added Rewrite |
status |
boolean |
Whether the function succeeded. |
|
0 |
rewritebasepath |
string |
The application's absolute file path. |
A valid path. |
/home/example/public_html |
url |
string |
The application's web path, relative to the home directory. |
A valid file path. |
test |
port |
integer |
The application's port number. |
A positive integer. |
12001 |
reason |
string |
A reason for failure. Note: This function only returns a reasonvalue if it failed. |
A string that describes the error. |
This is an error message. |
result |
boolean |
Whether the function succeeded. |
|
1 |