Page 1 of 1
Domain redirect to suspend template over https
Posted: Fri Jan 05, 2018 12:00 am
by bksoft
Hi, I have a curiously trouble, if somebody can help me.. please...
I have one domain: bksoft.mx
if I visit the site over http the site is running well, but if i visit the site over https the site is showing the suspend template.
This server have 2 ips attached and configured on vesta. All other sites function very well on the 2 ips, only this domains have this issue... the SSL is loading well.
I tryed tro change the nginx and httpd template, but the issue still.
somebody have any idea to solve this trouble?
note: if I change to other IP, the site is redirecting to the main site attached to this IP...
Re: Domain redirect to suspend template over https
Posted: Fri Jan 05, 2018 2:19 am
by mehargags
VestaCP uses separate conf files for http and https. Can you check snginx and sapache2 conf files for this user and find problems there ?
You can also try rebuilding web for this particular user and see if it resolves the issue
Re: Domain redirect to suspend template over https
Posted: Fri Jan 05, 2018 4:26 am
by bksoft
I tryed rebuild with /usr/local/vesta/bin/v-rebuild-web-domains
for all domains of the user, but the trouble persist, I was checked the conf files too, in fact I tryed to change these files with another similar that function well (changing the domain name and the ip), but the trouble persist too...
these are the files...
Code: Select all
<VirtualHost 94.76.206.171:8443>
ServerName bksoft.mx
ServerAlias www.bksoft.mx
ServerAdmin [email protected]
DocumentRoot /home/bksoft/web/bksoft.mx/public_html
ScriptAlias /cgi-bin/ /home/bksoft/web/bksoft.mx/cgi-bin/
Alias /vstats/ /home/bksoft/web/bksoft.mx/stats/
Alias /error/ /home/bksoft/web/bksoft.mx/document_errors/
SuexecUserGroup bksoft bksoft
CustomLog /var/log/httpd/domains/bksoft.mx.bytes bytes
CustomLog /var/log/httpd/domains/bksoft.mx.log combined
ErrorLog /var/log/httpd/domains/bksoft.mx.error.log
<Directory /home/bksoft/web/bksoft.mx/public_html>
SSLRequireSSL
AllowOverride All
Options +Includes -Indexes +ExecCGI
<Files *.php>
SetHandler fcgid-script
</Files>
FCGIWrapper /home/bksoft/web/bksoft.mx/cgi-bin/fcgi-starter .php
</Directory>
<Directory /home/bksoft/web/bksoft.mx/stats>
AllowOverride All
</Directory>
php_admin_value open_basedir none
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /home/bksoft/conf/web/ssl.bksoft.mx.crt
SSLCertificateKeyFile /home/bksoft/conf/web/ssl.bksoft.mx.key
#SSLCertificateChainFile /home/bksoft/conf/web/ssl.bksoft.mx.ca
Include /home/bksoft/conf/web/shttpd.bksoft.mx.conf*
</VirtualHost>
and
Code: Select all
server {
listen 94.76.206.171:443;
server_name bksoft.mx www.bksoft.mx;
ssl on;
ssl_certificate /home/bksoft/conf/web/ssl.bksoft.mx.pem;
ssl_certificate_key /home/bksoft/conf/web/ssl.bksoft.mx.key;
error_log /var/log/httpd/domains/bksoft.mx.error.log error;
location / {
proxy_pass https://94.76.206.171:8443;
location ~* ^.+\.(jpg|jpeg|gif|png|ico|svg|css|zip|tgz|gz|rar|bz2|exe|pdf|doc|xls|ppt|txt|odt|ods|odp|odf|tar|bmp|rtf|js|mp3|avi|mpeg|flv|html|htm)$ {
root /home/bksoft/web/bksoft.mx/public_html;
access_log /var/log/httpd/domains/bksoft.mx.log combined;
access_log /var/log/httpd/domains/bksoft.mx.bytes bytes;
expires max;
try_files $uri @fallback;
}
}
location /error/ {
alias /home/bksoft/web/bksoft.mx/document_errors/;
}
location @fallback {
proxy_pass https://94.76.206.171:8443;
}
location ~ /\.ht {return 404;}
location ~ /\.svn/ {return 404;}
location ~ /\.git/ {return 404;}
location ~ /\.hg/ {return 404;}
location ~ /\.bzr/ {return 404;}
disable_symlinks if_not_owner from=/home/bksoft/web/bksoft.mx/public_html;
include /home/bksoft/conf/web/snginx.bksoft.mx.conf*;
}
do you have any idea, what's wrong?
Regards
Re: Domain redirect to suspend template over https
Posted: Fri Jan 05, 2018 7:08 am
by mehargags
Seems good on the config side.
It is a Wordpress site right ? can yu check inside your wordpress settings and set the URL to https version?
if still the problem persists pls PM me your SSH and VESTA details, I'll need to look into your server
Re: Domain redirect to suspend template over https
Posted: Fri Jan 05, 2018 5:07 pm
by bksoft
I don't know how, but is now solved.
I tryed some alternatives, may help somebody in future...
1. I change the domain to other IP (trouble persist)
2. I deleted the domain and create in a new client (trouble persist)
3. I delete the domain and create again in the original client without SSL
4. I recreate the DNS entries one by one and check all
5. I move all files in /home/bksoft/conf/web/ (with bksoft.mx domain) to a temp folder and add SSL again in plain text
after the last 3 steps the domain begin to display well, but I don't know what was wrong... may be the DNS entries (?) or residual SSL files in vesta config (?)...
Thank's a lot to mehargags to take tima to post ideas about solve this trouble.
Re: Domain redirect to suspend template over https
Posted: Sat Jan 06, 2018 6:15 am
by mehargags
Yes such problems are mostly due to DNS mistakes only and DNS is a tricky part to troubleshoot since it has a "propagation time" associated with it.
Anyways, I'm glad you managed to fix it.