I'm running an apache web server on ubuntu server 12.04 LTS.
If I try to
/usr/bin/curl http://mysite.com/script.php
I get the error message
Access denied: follow redirect to /public/
What can cause this, and where should I start looking?
I'm so lost:)
One thing that bugs me and I don't understand is, where does /public/ come from? The script has no redirect.
The server is behind a firewall that I unfortunately don't have any control over. But everything else seems to be working so I don't think it's the firewall either, but that's just me guessing basically. On the web server itself, mod-security is installed. But disabeling mod-security doesn't do any difference.
This is output I got from a opencart developer when trying to figure out why the extension didn't work.
array(4) {
["header"]=>
string(341) "HTTP/1.1 302 Found
Date: Thu, 22 Nov 2012 15:21:06 GMT
Server: Apache
Set-Cookie: PHPSESSID=151001bac8acee29f43a3bd6dd33c59c; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: /public/
Content-Length: 42
Content-Type: text/html
"
["response"]=>
string(42) "Access denied: follow redirect to /public/"
["status"]=>
int(302)
["info"]=>
array(22) {
["url"]=>
string(58) "http://www.example.com/index.php?route=ne/template/json"
["content_type"]=>
string(9) "text/html"
["http_code"]=>
int(302)
["header_size"]=>
int(341)
["request_size"]=>
int(342)
["filetime"]=>
int(-1)
["ssl_verify_result"]=>
int(0)
["redirect_count"]=>
int(0)
["total_time"]=>
float(0.081065)
["namelookup_time"]=>
float(0.059011)
["connect_time"]=>
float(0.05941)
["pretransfer_time"]=>
float(0.059416)
["size_upload"]=>
float(99)
["size_download"]=>
float(42)
["speed_download"]=>
float(518)
["speed_upload"]=>
float(1221)
["download_content_length"]=>
float(42)
["upload_content_length"]=>
float(99)
["starttransfer_time"]=>
float(0.081004)
["redirect_time"]=>
float(0)
["certinfo"]=>
array(0) {
}
["redirect_url"]=>
string(33) "http://www.example.com/public/"
}
}