Re: Forbidden fix

2016-10-14 Thread Ricardo Prado
Hi Mike!

Are you using SSL certificate?
What's your SO? Ubuntu, Debian, Win?
Please get apache log, you can found this in typing:

cat /etc/var/log/apache2/error.log (if ubuntu or debian)

and type this an copy and past the permission:

stat -c "%n %a" /substance/wsds/7291

check in octal permissions,

I'm waiting you reply



Em quinta-feira, 13 de outubro de 2016 04:47:58 UTC-3, Mike Dewhirst 
escreveu:
>
> I have two similar servers behaving differently. This is the staging 
> server ... 
>
> You don't have permission to access /substance/wsds/7291/ on this server. 
>
> The production server is fine running Ubuntu 14.04 and Apache 2.2. The 
> difference is that I have just upgraded staging to Ubuntu 16.04 and 
> Apache 2.4. 
>
> The new problem resulting from the upgrade was that the Apache redirect 
> from http on port 80 to https on port 443 was failing occasionally. 
>
> That occasion was in the Django Admin when clicking (View on site) 
>
> The fix is to adjust get_absolute_url() so it always specifies https 
>
> Hope this helps someone. 
>
> Cheers 
>
> Mike 
>
>
>
>
>
>
>

-- 
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+unsubscr...@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/4a0c878d-adc2-4f2b-9401-9de04f868217%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Forbidden fix

2016-10-13 Thread Ricardo Prado
Can You send an image or log about this problem?


Check virtualhost,
APACHE 2.2 - use in dir "Allow All"
APACHE 2.4 - use "Require All Grant"




Em quinta-feira, 13 de outubro de 2016 04:47:58 UTC-3, Mike Dewhirst 
escreveu:
>
> I have two similar servers behaving differently. This is the staging 
> server ... 
>
> You don't have permission to access /substance/wsds/7291/ on this server. 
>
> The production server is fine running Ubuntu 14.04 and Apache 2.2. The 
> difference is that I have just upgraded staging to Ubuntu 16.04 and 
> Apache 2.4. 
>
> The new problem resulting from the upgrade was that the Apache redirect 
> from http on port 80 to https on port 443 was failing occasionally. 
>
> That occasion was in the Django Admin when clicking (View on site) 
>
> The fix is to adjust get_absolute_url() so it always specifies https 
>
> Hope this helps someone. 
>
> Cheers 
>
> Mike 
>
>
>
>
>
>
>

-- 
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+unsubscr...@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/2da7c070-82f4-44c2-ad5e-d3353a556a79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Forbidden fix

2016-10-13 Thread Mike Dewhirst
I have two similar servers behaving differently. This is the staging 
server ...


You don't have permission to access /substance/wsds/7291/ on this server.

The production server is fine running Ubuntu 14.04 and Apache 2.2. The 
difference is that I have just upgraded staging to Ubuntu 16.04 and 
Apache 2.4.


The new problem resulting from the upgrade was that the Apache redirect 
from http on port 80 to https on port 443 was failing occasionally.


That occasion was in the Django Admin when clicking (View on site)

The fix is to adjust get_absolute_url() so it always specifies https

Hope this helps someone.

Cheers

Mike






--
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+unsubscr...@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/a91191a3-b4e4-d18d-eaf2-c99ac462ceaa%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.