I
I
Ilya2016-09-03 18:04:34
Nginx
Ilya, 2016-09-03 18:04:34

How to migrate a website from nginx to apache?

Good evening, I'm trying to transfer a WordPress site that was hosted on my Amazon vds, on which I raised nginx with such configs

server {
  listen 80;
  server_name xn--90agrrk8e.xn--p1ai;
  return 301 https://$server_name$request_uri;  
    rewrite ^(.*) https://xn--90agrrk8e.xn--p1ai$uri permanent;

}

server {
        listen 443 ssl http2;
  server_name xn--90agrrk8e.xn--p1ai;

  gzip on;
        gzip_disable "msie6";
        gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
        gzip_comp_level 8;
  
  root /home/www/backdoor.rf;
  
  ssl on;
  ssl_stapling on;
  ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
  ssl_ciphers         kEECDH+AES128:kEECDH:kEDH:-3DES:kRSA+AES128:kEDH+3DES:DES-CBC3-SHA:!RC4:!aNULL:!eNULL:!MD5:!EXPORT:!LOW:!SEED:!CAMELLIA:!IDEA:!PSK:!SRP:!SSLv2;
  ssl_certificate     /etc/nginx/key/backdoor.crt;
  ssl_certificate_key /etc/nginx/key/backdoor.key;
  ssl_dhparam /etc/nginx/key/dhparam.pem;
  ssl_session_cache   shared:SSL:2m;
  ssl_session_timeout 24h;
  ssl_prefer_server_ciphers on;
  add_header Strict-Transport-Security "max-age=31536000;";
  add_header Content-Security-Policy-Report-Only "default-src https:; script-src https: 'unsafe-eval' 'unsafe-inline'; style-src https: 'unsafe-inline'; img-src https: data:; font-src https: data:; report-uri /csp-report";
  
        access_log /home/log/backdoor-access.log;
        error_log /home/log/backdoor-error.log;
 
        include /etc/nginx/templates/php;
 
    }

now I'm trying to transfer it to a server with ispmanager, added a domain, added a certificate, and now when you click on a link from https, the static is not loaded, for some reason it goes via http, and the admin panel is not loaded. What can be done? I've been suffering for 3 days now.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanes, 2016-09-04
@nuBacuk

In ISPmanager, you can edit the www-domain config manually. From administrator.

V
Vladislav, 2016-09-04
@MrBikus

Install nginx and that's it, it will be easier, besides, changing nginx to Apache is like changing expensive shoes to slates from the market.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question