Hi I am having an issue with a multisite issue with SSL, probably because of my lack of knowledge in nginx configuration. Here is my issue:
in order to create a subdomain with a valid SSL, I understand I need to create it’s own server.
For the parent domain I have:
server {
listen 80;
listen 443 ssl spdy;
server_name newearthproject.org *.newearthproject.org;
ssl_certificate /var/www/newearthnation.org/conf/certs/newearthproject.org.crt;
ssl_certificate_key /var/www/newearthnation.org/conf/certs/private/newearthproject.org.key;
# Uncomment the following line for domain mapping
server_name_in_redirect off;
access_log /var/log/nginx/newearthproject.org.access.log rt_cache;
error_log /var/log/nginx/newearthproject.org.error.log;
root /var/www/newearthnation.org/htdocs;
index index.php index.html index.htm;
# Redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/html;
}
include common/php-hhvm.conf;
include common/wpcommon.conf;
include common/locations.conf;
}
Here everything works, including the subdomain, except that I get an SSL error because of the invalid certificate.
Now when attempt to include the server entries for subdomain with SSL, things weird out for the back end login. When I login, it tells me it logs successfully but it does not log me in. If I use wp-login.php to login, then I get a 403 forbidden, Here is the nearly identical entry:
server {
listen 80;
listen 443 ssl spdy;
server_name volunteer.newearthproject.org; #COMMENTED OUT *.volunteer.newearthproject.org;
ssl_certificate /var/www/newearthnation.org/conf/certs/volunteer.newearthproject.org.crt;
ssl_certificate_key /var/www/newearthnation.org/conf/certs/private/volunteer.newearthproject.org.key;
# Uncomment the following line for domain mapping
server_name_in_redirect off;
access_log /var/log/nginx/volunteer.newearthproject.org.access.log rt_cache;
error_log /var/log/nginx/volunteer.newearthproject.org.error.log;
root /var/www/newearthnation.org/htdocs;
index index.php index.html index.htm;
# Redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/html;
}
include common/php-hhvm.conf;
include common/wpcommon.conf;
include common/locations.conf;
}
Any body any ideas on how to start to troubleshoot?
Thanks