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: 208
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready