0 votes
42 views
by Rookie

Hai.

www version of my site not redirecting to the non www version of my site. Here is the URL of my site. Site .  

by Expert
If you don't provide details, we can hardly help you.

Do you know how to reproduce this issue?

Did you see any Nginx misconfiguration?
by Rookie
Hey there.

Thanks for the reply.

This is my config file

# WebinolyNginxServerStart

# WebinolySSLredirectStart - HTTP to HTTPS Redirect

server {

listen 80;

listen [::]:80;

server_name tamillyrics143.com www.tamillyrics143.com;

return 301 https://$host$request_uri;

}

# WebinolySSLredirectEnd

# WebinolyWWWredirectStart - Force WWW or non-WWW redirect

server {

listen 443 ssl http2;

listen [::]:443 ssl http2;

server_name www.tamillyrics143.com;

# WebinolySSLstart

ssl_certificate /etc/letsencrypt/live/tamillyrics143.com/fullchain.pem;

ssl_certificate_key /etc/letsencrypt/live/tamillyrics143.com/privkey.pem;

ssl_stapling on;

ssl_stapling_verify on;

ssl_trusted_certificate /etc/letsencrypt/live/tamillyrics143.com/chain.pem;

# WebinolySSLend

include common/headers-http.conf;

include common/headers-https.conf;

return 301 $scheme://tamillyrics143.com$request_uri;

}

# WebinolyWWWredirectEnd

server {

listen 443 ssl http2;

listen [::]:443 ssl http2;

server_name tamillyrics143.com;

# WebinolySSLstart

ssl_certificate /etc/letsencrypt/live/tamillyrics143.com/fullchain.pem;

ssl_certificate_key /etc/letsencrypt/live/tamillyrics143.com/privkey.pem;

ssl_stapling on;

ssl_stapling_verify on;

ssl_trusted_certificate /etc/letsencrypt/live/tamillyrics143.com/chain.pem;

# WebinolySSLend

access_log off;

error_log /var/log/nginx/tamillyrics143.com.error.log;

root /var/www/tamillyrics143.com/htdocs;

index  index.php index.html index.htm;

include common/auth.conf;

# WebinolyCustom

include common/yoast-sitemap.conf;

# WebinolyCustomEnd

include common/wpfc.conf;

include common/wpcommon-noauth.conf;

include common/locations.conf;

include common/headers-http.conf;

include common/headers-https.conf;

include common/headers-html.conf;

include /var/www/tamillyrics143.com/*-nginx.conf;

}

# WebinolyNginxServerEnd

Currently using the latest version of webinoly. The site config file from this location /etc/nginx/sites-available is different from the previous versions of webinoly.

I don't know how to reproduce this issue.

1 Answer

0 votes
by Expert
I'm almost sure you don't know you need a DNS 'A' record for www.

Check your DNS!
by Rookie
I have already pointed both " A" records @ - My server IP and www - my server IP in my DNS panel.
by Expert
Check your logs, browser throws an SSL error!
by Rookie
Which ones log. Letsencrypt or nginx log..?
by Rookie
Hey there.

The issue is fixed now. It's due to ezoic proxy
by Expert
Glad you solved your issue!
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations GitHub Sponsors

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...