Answer the question
In order to leave comments, you need to log in
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;
}
Answer the question
In order to leave comments, you need to log in
In ISPmanager, you can edit the www-domain config manually. From administrator.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question