New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forbidden Error #1293

Closed
railsfactory-aruns opened this Issue Jul 10, 2013 · 14 comments

Comments

Projects
None yet
7 participants
@railsfactory-aruns
Copy link

railsfactory-aruns commented Jul 10, 2013

When I am trying to start "jekyll server". After that I refresh the page i'm getting "no access permission" error.

ERROR no access permission to `/'
localhost - - [10/Jul/2013:12:29:28 IST] "GET / HTTP/1.1" 403 283

Please help me out.

@parkr

This comment has been minimized.

Copy link
Member

parkr commented Jul 10, 2013

There is no index.html page to access! You'll get that error when WEBrick doesn't have a page to serve in that dir.

@parkr parkr closed this Jul 10, 2013

@railsfactory-aruns

This comment has been minimized.

Copy link

railsfactory-aruns commented Jul 16, 2013

In url localhost:4000/en/ means its showing error.

ERROR no access permission to `/en/'
localhost - - [16/Jul/2013:17:38:05 IST] "GET /en/ HTTP/1.1" 403 286

  • -> /en/
    But I have 'en' folder with index.en.html file also.

Why this error showing?

@parkr

This comment has been minimized.

Copy link
Member

parkr commented Jul 16, 2013

What is in your _site/en/ dir?

@railsfactory-aruns

This comment has been minimized.

Copy link

railsfactory-aruns commented Jul 16, 2013

yes. I have in "_site/en/"

@parkr

This comment has been minimized.

Copy link
Member

parkr commented Jul 16, 2013

You have what in _site/en/? What is in it?

@railsfactory-aruns

This comment has been minimized.

Copy link

railsfactory-aruns commented Jul 16, 2013

Normally I have en/index.en.html file. While start "jekyll server" compiling into the _site folder. In that time its generate like "_site/en/" then I have two folder "_site/en/en/index.html" and "_site/en/feature/".

Why its creating "_site/en/en/index.html" instead of "_site/en/index.html"?

@parkr

This comment has been minimized.

Copy link
Member

parkr commented Jul 16, 2013

Did you define a permalink in en/index.en.html?

@railsfactory-aruns

This comment has been minimized.

Copy link

railsfactory-aruns commented Jul 16, 2013

No. I didn't mention any permalink.

@parkr

This comment has been minimized.

Copy link
Member

parkr commented Jul 16, 2013

Hm. Can I see your site source? It sounds like a very nuanced problem that I'm having trouble diagnosing here.

@railsfactory-aruns

This comment has been minimized.

Copy link

railsfactory-aruns commented Jul 17, 2013

I can define relative_root: ../ in index.en.html path is en/index.en.html

@mehmedju

This comment has been minimized.

Copy link

mehmedju commented Feb 17, 2014

try in command line put right path of your folder (where is your app)...I had same issue and I solved this problem on this way..

@castea-webdev

This comment has been minimized.

Copy link

castea-webdev commented Mar 14, 2014

i fix my forbidden problem by:

  1. shutdown the jekyll (Ctrl + C)
  2. delete two files named "serve" at folder "_site" and project-root / webroot
  3. restart jekyll : jekyll serve
    :-)
@joenorton

This comment has been minimized.

Copy link

joenorton commented Jun 21, 2014

I just wanted to drop a note. I ran into this same problem, seemingly out of no-where. While setting up guard I must've updated Jekyll or something - and suddenly default behavior switched on me. Even using 'jekyll serve' I was getting 'forbidden' errors on every page except for my root level index.

Folders at root that include an index.html cannot have a permalink that is equal to the folder name. The permalink has to be '/'. This was not always the case, because i have been keeping my pages with permalinks this way for atleast a month or 2 before suddenly getting these errors.

WHAT I SAW:
root/about/index.html would get built into root/_site/about/about/index.html
when the index.html permalink was set to '/about/'

After going thru and renaming these top-level folder index pages all to a permalink of just '/' I have fixed the issue.

@tomjoht

This comment has been minimized.

Copy link
Contributor

tomjoht commented Jul 20, 2015

I had this error. It turns out that in my _config.yml file, I had an empty line in my excludes property, like this:

excludes:
- _site
- _drafts
- 

@jekyll jekyll locked and limited conversation to collaborators Jul 20, 2015

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.