I want both www.* and the root domain to point at my Ghost blog. How do I do this?

September 10, 2014 2.2k views

Currently, only http://www.karimmaassen.com goes to my Ghost blog. http://karimmaassen.com fails. How do I fix this?

3 comments
  • What Webserver are you on (NGINX, APACHE)? does your configuration file look like this?

    If your on UBUNTU

    NGINX: (/etc/nginx/sites-enabled)
    server_name karimmaassen.com *.karimmaassen.com www.karimmaassen.com;

    After you configure:
    service nginx restart

    APACHE:(/etc/apache2/sites-enabled)
    ServerName www.karimmaassen.com
    ServerAlias karimmaassen.com *.karimmaassen.com

    After you configure:
    service apache2 restart

  • @juhenriquez - Thanks for your comment. I'm running the application droplet of Ghost, which is I believe Nginx?

    I'll try and edit my sites-enabled file.

  • That resolved the issue! If you could make it into a real answer, I'll mark it as answered!

1 Answer

What Webserver are you on (NGINX, APACHE)? does your configuration file look like this?

If your on UBUNTU

NGINX: (/etc/nginx/sites-enabled)
server_name karimmaassen.com *.karimmaassen.com www.karimmaassen.com;

After you configure:
service nginx restart

APACHE:(/etc/apache2/sites-enabled)
ServerName www.karimmaassen.com
ServerAlias karimmaassen.com *.karimmaassen.com

After you configure:
service apache2 restart

Have another answer? Share your knowledge.