GithubHelp home page GithubHelp logo

Comments (4)

piharpi avatar piharpi commented on May 13, 2024

what are You using Docker or something else?

from jekyll-klise.

aaronpaulyo avatar aaronpaulyo commented on May 13, 2024

what are You using Docker or something else?

I'm using the ubuntu 18.04 server of cloud at cost.

so basically i have my public ip 44.x.x.x and domain name from Godaddy and i've also setup the protection via cloud flair. so now the issue is whenever i start the jekyll with bundle exec jekyll serve i have 2 option either set the host to 44.x.x.x or 0.0.0.0 right?
but if i set it to 0.0.0.0 and try to redirect those /assets/ path it will go to the 0.0.0.0 instead of my original domain name(it's obvious thing that i know) and if i set the host name to 44.x.x.x(my public ip) then this time it will redirect to the domain but it'll disclose my public ip for 2-3 second that i don't want to be happened.

so i just wanted to know that how did you disable the directory listing and where did you setup that theme.

from jekyll-klise.

0Ky avatar 0Ky commented on May 13, 2024

how to hide assets directory in this theme on live server.

This is not an issue related to Jekyll or the theme. It's a behaviour of the web server (Apache/Nginx) that's hosting your website.

I want to do like this one "https://klise.vercel.app/assets" to get 404 page but it's not working for me can u guide me what i have to do for this outcome.

https://klise.vercel.app/ - This website is hosted on Vercel you may also use Netlify to host your static site for free and they disable directory listing by default.

If you want to deploy this template to either Netlify or Vercel, just hit the 'Deploy' button from the installation section.

from jekyll-klise.

iHarshad avatar iHarshad commented on May 13, 2024

Jekyll outputs static HTML files which do not have any logic/mechanism to prevent directory listing. You can think of them as plaintext files that do nothing. You will have to disable directory listing on your server.

If you are using Apache server on your Ubuntu machine then you can disable directory listing in your .htaccess file or your Apache config files using Options -Indexes.

For Nginx server, you will have to use autoindex off; in your Nginx config files.

from jekyll-klise.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.