1. Remove the 'I' before the Virtualhost.NikosThess wrote: ↑2018/09/04 20:29:43Code: Select all
I<VirtualHost *:80> ServerName superhost.gr WSGIDaemonProcess public_html WSGIProcessGroup public_html WSGIScriptReloading On WSGIScriptAlias / /home/nikos/public_html/app.py <Directory /home/nikos/public_html> Require all granted </Directory> </VirtualHost>
I still don't understand what is the meaning of '?'Code: Select all
[root@superhost public_html]# getsebool httpd_enable_homedirs getsebool: SELinux is disabled [root@superhost public_html]# apachectl configtest Syntax OK [root@superhost public_html]# ls -lZ app.py -rwxr-xr-x nikos nikos ?
Why am i gettign this damn "You don't have permission to access / on this server"
See for yourself http://superhost.gr/
2. Put '<Directory /home/nikos/>' section outside the Virtualhost section
3. You get 'access denied' due to apache not able to read the app.py .Set permissions of app.py -> 750 apache:apache
4. Stop using '-Z' when selinux is disabled.
5. Once you make it running set SELINUX to permissive and consider switching to ENFORCING