Wednesday, April 27, 2016

Re: I'm new to programming, I don't know where consider as "document root of web server"

Sorry, that was a "where is" not a "what is"

The document root of your webserver is the *default* location on the file system that the webserver will look for content/websites/things to "serve".


cheers
L.

------
The most dangerous phrase in the language is, "We've always done it this way."

- Grace Hopper

On 28 April 2016 at 11:56, Lachlan Musicman <datakid@gmail.com> wrote:
Mie,

Traditionally the document root to your webserver is (depending on your system) /var/www.

This will be defined in the webserver (apache2/httpd, nginx, etc) configuration.

I normally create a folder in my home dir called www and place my sites within that

/home/lachlan/www/site1
/home/lachlan/www/site2

At a later point, you will need to set up your webserver to read from that directory.



Cheers
L.

------
The most dangerous phrase in the language is, "We've always done it this way."

- Grace Hopper

On 28 April 2016 at 11:25, Mie Rex <rexmie888@gmail.com> wrote:
Hello everyone, I am new to Django and quite new to Python as well.

I came across this advice while I'm going through the Django tutorial here

It mentioned "It's not a good idea to put any of this Python code within your Web server's document root..."
My very newbie question is:  what's document root of web server?
I have no knowledge in building a web site so please forgive my very shallow question.
Cheers

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0d8833ce-1623-4811-836a-d82a1cc39ee9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGBeqiOyiX9Uy8s%2BDOp8whFwYAQU2Q0z4E%2B_1aYFb-BZ7M1ZZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment