AWS, NGINX
-
Hi my champion frieends.
I’m starting a site at TLD.net. It continuelly redirects, causign a loop i think.
Its on the AWS server, EC2. The Target Group HTTP forwards traffic to HTTPS.
In the NGINX code, i have this on page /etc/nginx/conf.d/www.ads-software.com:
map $blogname $blogid{ default -999;
#Ref: https://www.ads-software.com/extend/plugins/nginx-helper/ include #/var/www/wordpress/wp-content/plugins/nginx-helper/map.conf ;
}
server { server_name integritytoysales.net ;
root /var/www/html/wordpress/integritytoysales.net/htdocs; index index.php; location ~ ^(/[^/]+/)?files/(.+) { try_files /wp-content/blogs.dir/$blogid/files/$2 /wp-includes/ms-files.php?file=$2 ; access_log off; log_not_found off; expires max; } #avoid php readfile() location ^~ /blogs.dir { internal; alias /var/www/html/wordpress/integritytoysales.net/htdocs/wp-content/blogs.dir ; access_log > off; expires max; } if (!-e $request_filename) { rewrite /wp-admin$ $scheme://$host$request_uri/ permanent; rewrite ^(/[^/]+)?(/wp-.*) $2 last; rewrite ^(/[^/]+)?(/.*\.php) $2 last; } location / { try_files $uri $uri/ /index.php?$args ; } location ~ \.php$ { try_files $uri =404; include fastcgi_params; fastcgi_pass php; }
Alsok i have this in /etc/nginx/conf.d/###.net.conf:
server { listen 80; root /var/www/html/wordpress; server_name integritytoysales.net; return 301
https://$server_name$request_uri;
}
listen 443 ssl; managed by Certbot ssl_certificate/etc/letsencrypt/live/integritytoysales.net/fullchain.pem;
managed by Cer>
ssl_certificate_key /etc/letsencrypt/live/integritytoysales.net/privkey.pem;
managed by C>
include /etc/letsencrypt/options-ssl-nginx.conf; managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
managed by Certbot
}
server { if ($host = integritytoysales.net) { return 301 https://$host$request_uri;
} managed by Certbotlisten 80; server_name integritytoysales.net; return 404; managed by Certbot
}
*****
I have added these codes from sourcers on the internet. But htere is no tutorial based on launching a fresh wordpress and changing it to multisite for nginx codes in /etc/nginx/conf.d files.Anyone know what i should be doing? Becuase i dont. ??
ThanksSteve
The page I need help with: [log in to see the link]
- The topic ‘AWS, NGINX’ is closed to new replies.