elkhedewy
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Fixing WordPress
In reply to: WordPress with nginx and apachei solved the problem by adding this to nginx server block:
server {
listen 0.0.0.0:443;
server_name 57357intranet.hospital57357.com;
server_tokens off;
ssl on;
add_header ‘Content-Security-Policy’ ‘upgrade-insecure-requests’;Forum: Fixing WordPress
In reply to: WordPress with nginx and apacheStill the same issue (Mixed content) on the home page
and too many redirection on wp-admin
Here is my nginx and Apache configuration:
server { listen 0.0.0.0:443; server_name 57357intranet.hospital57357.com; server_tokens off; ssl on; # use strong protocols and ciphers with acceptable fallback ssl_protocols TLSv1.2; ssl_ciphers "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:!ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:!DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4"; ssl_session_cache shared:SSL:10m; ssl_prefer_server_ciphers on; # ssl certificate chain and private key ssl_certificate /etc/nginx/ssl/hospitalsites.pem; ssl_certificate_key /etc/nginx/ssl/hospitalsites.key; location /nginx_status { stub_status on; allow 127.0.0.1; deny all; } location ~/phpmyadmin { proxy_pass https://127.0.0.1:81; } location ~* \.(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|css|eot|amr|mp3|exe|zip|bmp|ogg|wav|wma|ico|pdf|m3u|mid|ram|rm|rmvb|rar|psd|swf|txt|doc|xls|wma|ttfi|js)$ { root /var/www/html/intranet/; expires max; } location / { proxy_pass https://127.0.0.1:81; proxy_connect_timeout 2000; proxy_read_timeout 3000; proxy_send_timeout 3000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Accept-Encoding ""; server_tokens off; proxy_buffers 16 16k; proxy_buffer_size 32k; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } if ($request_method !~ ^(GET|HEAD|POST)$ ) { return 444; } location ~ /\.ht { deny all; } }
And Apache as below: <VirtualHost 127.0.0.1:81> DocumentRoot /var/www/html/intranet ServerName 57357intranet.hospital57357.com ErrorLog logs/error_log CustomLog logs/access_log common <Directory "/var/www/html/intranet"> Options -Indexes +FollowSymLinks +ExecCGI AllowOverride All Require all granted </Directory> </VirtualHost>
Forum: Fixing WordPress
In reply to: WordPress with nginx and apacheWhen i change the website url to https it keep giving too many redirections.
The same issue happened when i forced https from .htaccess file
I tried all solution on the below article:
https://blog.hubspot.com/website/wordpress-force-https
But nothing solved my problemshttps://blog.hubspot.com/website/wordpress-force-https- This reply was modified 11 months, 3 weeks ago by elkhedewy.
Viewing 3 replies - 1 through 3 (of 3 total)