web appication server

web appication server

install apache

  • install Apache using your package manager with the following command :
sudo apt-get install apache2
  • use your browser to visiting http://localhost:80
  • you will see the following page:enter image description here

    note:Apache, by default, serves its files from the /var/www/html directory. If you explore this directory you will find a file called index.html and if you review that file you will see it contains the HTML of the page you see when you visit http://localhost:8080.

    install mod_wsgi

  • sudo apt-get install libapache2-mod-wsgi
  • sudo vim /etc/apache2/sites-enabled/000-default.conf

转载于:https://www.cnblogs.com/Ethan2lee/p/7523188.html