Re: Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet)

2018-01-27 Thread Antonis Christofides
> > But the following is still saying, “Forbidden”: > > > https://www.angeles4four.info/static/admin/ > This is normal. The reason is not the filesystem permissions, but that Apache is configured to not list files inside that directory (to change that you'd need to use "Options Indexes" somewhere,

Re: Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet)

2018-01-26 Thread drone4four
The username on my droplet is ‘tranq’ but there is a line in both my vhost config files which reads: So I swapped out ‘user’ for ‘tranq’. That line now reads: Now some of my static files are accessible. For example you can see here:

Re: Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet)

2018-01-25 Thread drone4four
You’re right, @Antonis, that I don’t want my Django source code exposed. No sysadmin would. I have since moved my Django project folder to my home user’s directory. However (out of curiosity), if I continued to house Django in my public_html folder (which I am not any more, but say if i did)

Re: Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet)

2018-01-21 Thread Phang Mulianto
Hi If you use ssl on apache, the ssl terminate only on apache request from client, then the wsgi from apache is no https. So ssl handled by your webserver service, whether the webserver you use is apache or nginx. Try access the static file with https is it working? On 21 Jan 2018 4:26 pm,

Re: Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet)

2018-01-21 Thread Antonis Christofides
Hello, I'm not certain I understand what you are describing. Is Apache listening on port 8000? How is it possible that you are using "runserver" when you are running Django through mod_wsgi? Something is wrong there. Also, don't put your Django app's files in public_html or any other directory

Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet)

2018-01-20 Thread drone4four
I’ve played with a little Django (v2.0.1) locally. Now I am trying to implement a test case on my production Apache web server. I’m running an Ubuntu 14.04 DigitalOcean droplet (will upgrade to 18.04 later this year). I got Django running. Here it is: http://www.angeles4four.info:8000/ Before