Ajax “POST” not working on HTTPS/SSL Nginx Announcing the arrival of Valued Associate...
How discoverable are IPv6 addresses and AAAA names by potential attackers?
Antler Helmet: Can it work?
When to stop saving and start investing?
Diagram with tikz
What does the "x" in "x86" represent?
Letter Boxed validator
Bonus calculation: Am I making a mountain out of a molehill?
If a contract sometimes uses the wrong name, is it still valid?
Is there a Spanish version of "dot your i's and cross your t's" that includes the letter 'ñ'?
Should I discuss the type of campaign with my players?
When is phishing education going too far?
Is above average number of years spent on PhD considered a red flag in future academia or industry positions?
Why is black pepper both grey and black?
What would be the ideal power source for a cybernetic eye?
How can players work together to take actions that are otherwise impossible?
What is this single-engine low-wing propeller plane?
Is there a "higher Segal conjecture"?
Why don't the Weasley twins use magic outside of school if the Trace can only find the location of spells cast?
Do you forfeit tax refunds/credits if you aren't required to and don't file by April 15?
How can I make names more distinctive without making them longer?
How to motivate offshore teams and trust them to deliver?
Did Kevin spill real chili?
How to find all the available tools in macOS terminal?
G-Code for resetting to 100% speed
Ajax “POST” not working on HTTPS/SSL Nginx
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Nginx has ssl module, but thinks it doesn'tBlank Page: wordpress on nginx+php-fpmNginx gives 504 Gateway Time-out once moved to liveNGINX don't parse .php5 as .phpLaravel 4.1 on nginx routes error 404Nginx/Apache: set HSTS only if X-Forwarded-Proto is httpsnginx rewrite throw 404 with last and breakNginX + WordPress + SSL + non-www + W3TC vhost config file questionsCodeIgniter nginx rewrite rules for i8ln URL'sNGINX virtual host config for Magento2 in a subfolder
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I moved my magento store from non SSL to SSL (webserver: Nginx)
The problem : The site's JS scripts ( Multiple Ajax function with "POST" ) has stopped working! Requests are fine but not able to get the response. Response headers (501 B)
I am very much sure this is due to Nginx webserver misconfiguration. Do i need to use reverse proxy to use SSL? If so how? Kindly advise.
My Nginx example.conf looks like this:
server {
listen 189.xx.xx.xx:80;
server_name example.com;
root /home/example/public_html;
index index.html index.php;
return 301 https://example.com$request_uri;
}
& My Nginx ssl-domain.conf looks like this:
server
{
listen 189.xx.xx.xx:443 default ssl;
server_name example.com;
root /home/example/public_html;
index index.html index.php;
ssl on;
ssl_certificate /etc/ssl/example.crt;
ssl_certificate_key /etc/ssl/example.key;
ssl_prefer_server_ciphers on;
location / {
try_files $uri $uri/ /index.php;
expires 30d;
}
location ~* .(gif|jpg|jpeg|pdf|txt|css|js|png|ico|xml|xml|gz)$ {
access_log off;
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
}
location ~ .php$ {
expires off;
fastcgi_read_timeout 900s;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/conf/fastcgi_params;
}
}
nginx ssl https magento ajax
bumped to the homepage by Community♦ 11 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I moved my magento store from non SSL to SSL (webserver: Nginx)
The problem : The site's JS scripts ( Multiple Ajax function with "POST" ) has stopped working! Requests are fine but not able to get the response. Response headers (501 B)
I am very much sure this is due to Nginx webserver misconfiguration. Do i need to use reverse proxy to use SSL? If so how? Kindly advise.
My Nginx example.conf looks like this:
server {
listen 189.xx.xx.xx:80;
server_name example.com;
root /home/example/public_html;
index index.html index.php;
return 301 https://example.com$request_uri;
}
& My Nginx ssl-domain.conf looks like this:
server
{
listen 189.xx.xx.xx:443 default ssl;
server_name example.com;
root /home/example/public_html;
index index.html index.php;
ssl on;
ssl_certificate /etc/ssl/example.crt;
ssl_certificate_key /etc/ssl/example.key;
ssl_prefer_server_ciphers on;
location / {
try_files $uri $uri/ /index.php;
expires 30d;
}
location ~* .(gif|jpg|jpeg|pdf|txt|css|js|png|ico|xml|xml|gz)$ {
access_log off;
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
}
location ~ .php$ {
expires off;
fastcgi_read_timeout 900s;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/conf/fastcgi_params;
}
}
nginx ssl https magento ajax
bumped to the homepage by Community♦ 11 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I moved my magento store from non SSL to SSL (webserver: Nginx)
The problem : The site's JS scripts ( Multiple Ajax function with "POST" ) has stopped working! Requests are fine but not able to get the response. Response headers (501 B)
I am very much sure this is due to Nginx webserver misconfiguration. Do i need to use reverse proxy to use SSL? If so how? Kindly advise.
My Nginx example.conf looks like this:
server {
listen 189.xx.xx.xx:80;
server_name example.com;
root /home/example/public_html;
index index.html index.php;
return 301 https://example.com$request_uri;
}
& My Nginx ssl-domain.conf looks like this:
server
{
listen 189.xx.xx.xx:443 default ssl;
server_name example.com;
root /home/example/public_html;
index index.html index.php;
ssl on;
ssl_certificate /etc/ssl/example.crt;
ssl_certificate_key /etc/ssl/example.key;
ssl_prefer_server_ciphers on;
location / {
try_files $uri $uri/ /index.php;
expires 30d;
}
location ~* .(gif|jpg|jpeg|pdf|txt|css|js|png|ico|xml|xml|gz)$ {
access_log off;
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
}
location ~ .php$ {
expires off;
fastcgi_read_timeout 900s;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/conf/fastcgi_params;
}
}
nginx ssl https magento ajax
I moved my magento store from non SSL to SSL (webserver: Nginx)
The problem : The site's JS scripts ( Multiple Ajax function with "POST" ) has stopped working! Requests are fine but not able to get the response. Response headers (501 B)
I am very much sure this is due to Nginx webserver misconfiguration. Do i need to use reverse proxy to use SSL? If so how? Kindly advise.
My Nginx example.conf looks like this:
server {
listen 189.xx.xx.xx:80;
server_name example.com;
root /home/example/public_html;
index index.html index.php;
return 301 https://example.com$request_uri;
}
& My Nginx ssl-domain.conf looks like this:
server
{
listen 189.xx.xx.xx:443 default ssl;
server_name example.com;
root /home/example/public_html;
index index.html index.php;
ssl on;
ssl_certificate /etc/ssl/example.crt;
ssl_certificate_key /etc/ssl/example.key;
ssl_prefer_server_ciphers on;
location / {
try_files $uri $uri/ /index.php;
expires 30d;
}
location ~* .(gif|jpg|jpeg|pdf|txt|css|js|png|ico|xml|xml|gz)$ {
access_log off;
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
}
location ~ .php$ {
expires off;
fastcgi_read_timeout 900s;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/conf/fastcgi_params;
}
}
nginx ssl https magento ajax
nginx ssl https magento ajax
asked Jan 12 '18 at 20:56
perlwareperlware
33
33
bumped to the homepage by Community♦ 11 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 11 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I finally fixed it, problem was Nginx Not Passing URL Parameters.
I solved it by appending $args in location block:
try_files $uri $uri/ /www/index.php?$args;
location / {
try_files $uri $uri/ /index.php?$args;
expires 30d;
}
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f891980%2fajax-post-not-working-on-https-ssl-nginx%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I finally fixed it, problem was Nginx Not Passing URL Parameters.
I solved it by appending $args in location block:
try_files $uri $uri/ /www/index.php?$args;
location / {
try_files $uri $uri/ /index.php?$args;
expires 30d;
}
add a comment |
I finally fixed it, problem was Nginx Not Passing URL Parameters.
I solved it by appending $args in location block:
try_files $uri $uri/ /www/index.php?$args;
location / {
try_files $uri $uri/ /index.php?$args;
expires 30d;
}
add a comment |
I finally fixed it, problem was Nginx Not Passing URL Parameters.
I solved it by appending $args in location block:
try_files $uri $uri/ /www/index.php?$args;
location / {
try_files $uri $uri/ /index.php?$args;
expires 30d;
}
I finally fixed it, problem was Nginx Not Passing URL Parameters.
I solved it by appending $args in location block:
try_files $uri $uri/ /www/index.php?$args;
location / {
try_files $uri $uri/ /index.php?$args;
expires 30d;
}
answered Jan 12 '18 at 22:37
perlwareperlware
33
33
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f891980%2fajax-post-not-working-on-https-ssl-nginx%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown