Wednesday, February 25, 2015

Re: django deployment in a virtual machine.

I believe a2ensite is a Debian-specific shortcut that allows you to quickly enable/disable various site configurations through the use of symlinks.

For CentOS you'll need to create a configuration file in your conf.d directory for your virtual host. I believe it will be included automatically by httpd when it is restarted, whereas Debian configures apache to pull configuration files from the sites-enabled directory which contains symlinks back to the real files in sites-available.

-James

On Feb 25, 2015 11:21 AM, "dk" <demiank@gmail.com> wrote:
looks like centos7 doesn't have or need that,
it comes with a folder call conf.d
and if the .conf file I inside this folder,  is like if was activate it.  =)


On Wednesday, February 25, 2015 at 1:01:57 PM UTC-6, Blazor wrote:
thanks   I am watching
but i am stuck at min 20 since it say that I need to activate the website, with a2ensite
they gave me a centos7 machine that doesn't have those commands.


a2ensite is basically a shortcut for creating a symbolic link between the sites-available entry you are interested into and the sites-enabled directory. You can do it manually:

# as an administrative user
cd /etc/apache2/sites-enabled
ln -s ../sites-available/<entry_you_would_have_a2ensitED>


B.

--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a7702198-bc1b-4aeb-92a3-0a673979d04f%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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciUc7xNTPVpSrmzku%3DiXU-3DCyO%2BLHz0Z70tnNo2GUPrEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment