I have installed the template Blanco in Magento 1.7.02 and I receive a “200 OK” status from the server, despite the URL still being invalid and the 404 page still being presented.
[root#host.shopmami.com] ~ >> curl -I http://www.almohadaspremama.com/aa
HTTP/1.1 200 OK
I disable the template Blanco and obtain the correct status.
root#host.shopmami.com] ~ >> curl -I http://www.almohadaspremama.com/aa
HTTP/1.1 404 Not Found
Please, anybody could help me to find the issue in the template?
Related
i've deploied my laravel site on my server.
but i got a problem.
First:
my files was in the public_html folder.
I got the 403 forbidden error.
Then:
i tried to move them outside the public_html folder and only put the laravel's public folder contents onto that.
it only show "Nginx is functioning normally".
I get the next message:
The requested URL was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
and the next log: [error] 8949#0: *2449542 access forbidden by rule, client: 13.90.224.16, server: marchethiaroye.com, request: "GET /.env HTTP/1.1", host: "www.marchethiaroye.com"
error log
Please help! It's my first deploiment.
NB: the site is working on local
file configs message i got
Let's assume your laravel project name is 'test'.
And you put 'test' on public_html.
Try open http://IP_ADDR/test/public
I have a NiFi instance running on a Docker container and, and I'd like to get some information about it through its API. To do so, I have followed the steps indicated here: https://community.hortonworks.com/questions/96383/how-to-get-the-access-token-by-invoking-nifi-rest.html, using this command:
curl 'http://<my_nifi_ip>:<my_nifi_port>/nifi/nifi-api/access/token' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' --data 'username=<my_user>&password=<my_password>' --compressed
But, when launching this command, it redirects me to the login page of NiFi
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved here.</p>
</body></html>
How can I solve my problem to get the token?
Thank you for your help. Regards.
The URL in the curl command needs to be 'https' instead of 'http', and the path is a little bit off and should not have the /nifi in front of /nifi-api.
You can cross-check against the curl command in the community post you linked to which I think has the correct command.
I've tried get some response on laradock application, with POST on postman with the same url and works but with curl don't
i've alredy tried change the port, my ip/localhost
but nothing works.
if i change url to localhost:port/xxx don't work, i get nothing as response
function to make a post with curl:
...
$url = '189.xx.xx.xx:81/api/xxxxx/';
$curl = curl_init();
curl_setopt($curl... //all the curl settings
...
$response = curl_exec($curl);```
and my response is "Failed to connect to 189.xx.xx.xx port 81: Connection refused"
I can't find solvation for this problem. Some products is OK, some return me 500 error (without timeout).
Debug mode gave me nothing interesting (identical errors on OK-pages and noOK-pages).
Logs are empty.
Magento 1.9.2.1.
500 is PHP error so please check view.phtml file find out error.
As advice: enable debug mode of your Magento system.
1)
In index.php uncomment this line:
#ini_set('display_errors', 1);
And add into your .htaccess
SetEnv MAGE_IS_DEVELOPER_MODE "true"
Then is a chance that you can see an errors
2)
In addition you can check your logs in /var/log folder
3) check your server logs. Error 500 usually logged in default server logs
500 is PHP error.
Check in template file, try to debug the php code (should in view.phtml file)
I got the same issue and i fixed it by debug in view.phtml file. The code calls a function in the module that i disabled.
i've created a rule using UrlRewriter to perform a redirect:
<rewriter>
<redirect url="~/ResetClock.ashx" to="~/ResetClock" />
</rewriter>
The problem is that it is issuing a 301 Moved Permanantly redirect:
POST /ResetClock.asp HTTP/1.1
HTTP/1.1 301 Moved Permanently
Location: /ResetClock
i can mark the redirect as "temporary" redirect:
<rewriter>
<redirect url="~/ResetClock.ashx" to="~/ResetClock" permanent="false" />
</rewriter>
In which case it incorrectly issues a 302 Found redirect:
POST /ResetClock.asp HTTP/1.1
HTTP/1.1 302 Found
Location: /ResetClock
The problem is that both of these redirects are the wrong redirect to issue. i need UrlRewriter to issue a:
307 Temporary Redirect
How can i do that?
Note: The reason i need it to issue a 307, is the reason 307 (and 303) were invented: all browsers handle 302 incorrectly; converting a POST into a GET. i need to tell the User-Agent that they need to post elsewhere:
POST /ResetClock.ashx HTTP/1.1
HTTP/1.1 307 Temporary Redirect
Location: /ResetClock
and the client will issue the redirect to the correct location.