Code Monkey home page Code Monkey logo

python-web-server's Introduction

SCS2205 Computer Networks I - Take Home Assignment 1

Name: W.M.S.L. BANDARA Registration Number: 2021/CS/020 Index Number: 21000204

Simple Web Server using Python

This is a simple web server program that can serve both static and PHP files. The server listens on port 2728.

Instructions for Running the Web Server

Follow these steps to execute the web server:

1. Prerequisites

Before running the web server, make sure the following is installed:

  • Python
  • PHP

2. Project Structure

Project directory should have the following structure:

21000204.zip |-- server.py |-- htdocs/ | |-- index.php | |-- multiply.php | |-- style.css | |-- ... |-- README.md (this file)

3. Running the Server

  1. Extract the contents of 21000204.zip to a directory of your choice.

  2. Open a terminal or command prompt and navigate to the project directory where server.py is located.

  3. Run the server using the following command:

    python server.py

The server should start and listen on port 2728.

4. Accessing the Web Pages

To access the default web page, open a web browser and enter the following URL:

http://localhost:2728

python-web-server's People

Contributors

saliyabandara avatar

Stargazers

 avatar

Watchers

 avatar

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.