Git Product home page Git Product logo

webserv's Introduction

  • 👋 Hi, I’m @aLeuleu I've been programming industrial robots for a time ( Staübli, Fanuc and others ) It made me want to study IT ! I've also done some basic C# software programming and Java backend programming
  • 🎓📜 Bac+2 Mechanical and production engineering
  • 🎓📜 Bac+3 Robotics and industrial networks
  • 🎓 Currently studying at 42 school in Lyon ! (What a amazing school, I'm so thankful !! ) --> 42lyon.fr
  • 🌱 I’m currently learning : C, C++, Python, Java, and others ! .. but also : Git, Vim, Visual Studio code, CLion
  • 📫 How to reach me : my gmail adress : aurelien.levra The sun is shining behind every clouds ! 🌞 It's a good life.

webserv's People

Contributors

aleuleu avatar tdameros avatar

Stargazers

 avatar  avatar

Watchers

 avatar

webserv's Issues

Bad location with specific file

http://localhost:9000/index.html


     server {
          listen 0.0.0.0:9000;
          server_name localhost:9000;
          location / {
              root assets/LeuleuWebsite;
              index index.html;
          }
  
          location /upload {
              root assets/LeuleuWebsite;
              index upload-file.html;
          }
  
          location test/ {
              root assets/;
              index index.html bidule.html wefwefwef.html;
              error_page 501        /500.html;
          }
  
          location something/ {
              # Redirection
              return 301 google.com;
          }
      }  # First server

Location requested: /index.html
Location not found: /index.html

But location is /, no /index.html

Default virtual server

Le premier serveur pour un host:port sera le serveur par défaut pour cet host:port
(ce qui signifie qu’il répondra à toutes les requêtes qui n’appartiennent pas à un
autre serveur).

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.