By Robert Moore
I am really just lost at this point. I have tried to fix my domains to work perfect but I am kind of lost. Can anyone offer me some advice? The issue is that https://lolskinview.com works fine. Goes there no problem, any other non-ssl domains (including http://lolskinview.com) that i add just go right to loldir.com… I posted the two conf files. I can post the nginx conf too if needed, this is just frustrating!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
here is the config that will solve all your problems …you want ssl, non ssl, multiple sites etc… just add the proper config like so…14 hours, on this! i got it though and I need to share because i know people want to know this. You have been waiting for 4 months… now my config includes hhvm, redis, wordpress multisite, and a cdn… so that’s where the mime types come in… as you can see my setup is very complex and unique as all of ours are…but the first two lines are the answers to your problems…it tells nginx to listen on 80 and 443 for both domain.com and subdomain.domain.com with a wildcard… dipphie helmen up! sorry i just love that name:
server { listen 80; listen 443; server_name jurisdesk.com *.jurisdesk.com; ssl on; ssl_certificate /var/www/jurisdesk.com/cert/example.com.crt; ssl_certificate_key /var/www/jurisdesk.com/cert/example.com.key;
access_log /var/log/nginx/jurisdesk.com.access.log rt_cache_redis; error_log /var/log/nginx/jurisdesk.com.error.log;
root /var/www/jurisdesk.com/htdocs;
index index.php index.html index.htm;
include common/redis-hhvm.conf;
include common/wpcommon.conf; include common/locations.conf; include /var/www/jurisdesk.com/conf/nginx/*.conf;
location ~ .(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ { add_header Access-Control-Allow-Origin “*”; }
}
server { listen 80; server_name www.jurisdesk.com; return 301 https://jurisdesk.com$request_uri; }
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.