How do I solve this problem in the creation of a web in python?

1

I am trying to create a project and following the steps of a tutorial page: link , When I get to step # 4, which is Configure the VirtualHost, it tells me this:

 jp@JP:~/sitiopy/python-web$ sudo a2ensite python-web 

 ERROR: Site python-web does not exist!

I do not know whether to execute this line in the root or from the folder where I am creating the program. This is the app tree.

jp@JP:~/sitiopy$ tree
.
└── python-web
    ├── logs
    ├── mypythonapp
    │   └── controller.py
    └── public_html

4 directories, 1 file

    
asked by José Pablo Santizo 13.08.2017 в 04:26
source

1 answer

2

a2ensite is not a python program itself, it is an acronym for Apache 2 ENable SIte, so this command is directly handled by apache,

In your /etc/apache2 folder there are a series of files and folders regarding the virtual hosts, you have to copy the model default that you will find in sites-available and change it according to your needs, once this is done the a2ensite command will find it and pass it to sites-enables with what you will be able to start having your virtual host running.

I leave you a guide that maybe I can help you a bit.

    
answered by 13.08.2017 / 05:23
source