Welcome! Log In Create A New Profile

Advanced

Serving jekyll generated site

February 19, 2010 05:41PM
Hi all,

i'm trying to serve my blog made with jekyll and nginx. The blog should be hosted at
http://www.mydomain.com/blog. The problem is that all css, images and the posts are
available at /css , /images and /2010/01/18/blogpost.html so they refere to the
http://mydomain.com/ although physically they are located at blog/...

Here you can see how it is stored on my server:

/var/www/blog$ ls
2008 css images index.html
xxx@xxx: /var/www/blog$

This is my nginx setup:

location / {
alias /var/www/blog/;
}

location /blog {
root /var/www;
index index.html index.htm;
}

So with this setup i can serve all pages but the problem is that if somebody access http://www.mydomain.com,
they will see the blog. This is not my expected behavior.

Could you please help me to set things up?

Thanks, Mike
Subject Author Posted

Serving jekyll generated site

MikeG February 19, 2010 05:41PM

Re: Serving jekyll generated site

Fernando Perez February 26, 2010 09:06AM

Re: Serving jekyll generated site

Fernando Perez February 26, 2010 09:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready