I don't see anything in this email to confirm that you have done things I 
previously suggested you do.

1. No indication that you are successfully using Include directive to include 
httpd-vhosts.conf into the main Apache configuration file.

2. No indication that you have correct LoadModule line in the main Apache 
configuration. Running ``mod_wsgi-express install-module`` does not modify the 
main Apache configuration file, it only shows what you need to add. It should 
be added just after existing LoadModule lines in the main Apache configuration 
file.

3. You are still using ServerName with value superhost.gr when I told you that 
because you had an existing VirtualHost for post 80 with the same ServerName, 
that the existing one would be used and not this one. You would have to create 
a new sub domain for use with this if want a separate site where the WSGI 
application runs at the root of the site.

Since you are having so may issues with having the second VirtualHost, to make 
it easier to understand and identify where you are missing things, add the 
configuration inside of your existing VirtualHost in the main Apache 
configuration file. That is, add:

    WSGIDaemonProcess public_html user=nikos group=nikos processes=1 threads=5
    WSGIScriptAlias /mypythonapp /home/nikos/public_html/app.py

    <Directory /home/nikos/public_html>
        WSGIProcessGroup public_html
        WSGIApplicationGroup %{GLOBAL}
        WSGIScriptReloading On

       AllowOverride None
       Require all granted
    </Directory>

Note that I have changed the first argument of WSGIScriptAlias to 
'/mypythonapp'.

This means when you make a web request, you should use:

    http://superhost.gr/mypythonapp <http://superhost.gr/mypythonapp>

Note that I am travelling this week for work, so expect slow responses.

Graham

> On 6 Sep 2018, at 1:24 am, Νίκος Βέργος <[email protected]> wrote:
> 
> =================
> httpd-vhosts.conf
> =================
> 
> <VirtualHost *:80>
>     ServerName superhost.gr
>     ServerAdmin [email protected]
> 
>     WSGIDaemonProcess public_html user=nikos group=nikos processes=1 threads=5
>     WSGIScriptAlias / /home/nikos/public_html/app.py
> 
>     <Directory /home/nikos/public_html>
>         WSGIProcessGroup public_html
>         WSGIApplicationGroup %{GLOBAL}
>         WSGIScriptReloading On
> 
>        AllowOverride None
>        Require all granted
>     </Directory>
> 
>     #ErrorLog /home/nikos/public_html/logs/error.log
> </VirtualHost>
> 
> [root@superhost BACKUP]# chmod -R 755 /home/nikos/
> chmod: changing permissions of ‘/home/nikos/fcgi-bin/php7.3.fcgi’: Operation 
> not permitted
> 
> [root@superhost BACKUP]# ls -ld /home/nikos/
> drwxr-xr-x 13 nikos nikos 4096 Sep  5 15:31 /home/nikos/
> 
> [root@superhost BACKUP]# chmod -R 755 /home/nikos/
> chmod: changing permissions of ‘/home/nikos/fcgi-bin/php7.3.fcgi’: Operation 
> not permitted
> [root@superhost BACKUP]# ls -ld /home/nikos/
> drwxr-xr-x 13 nikos nikos 4096 Sep  5 15:31 /home/nikos/
> 
> I Removed both mod_wsgi and python36u-mod_wsgi as well. I installed yum 
> install httpd-devel to get rid of the 'apsx' issue. Here is the results of 
> the express install. 
> 
> [root@superhost public_html]# 
> mod_wsgi-express install-module 
> LoadModule wsgi_module 
> "/usr/lib64/httpd/modules/mod_wsgi-py36.cpython-36m-x86_64-linux-gnu.so" 
> WSGIPythonHome "/usr" 
> 
> Do you make anyhting out of it as to why still cannot load my wsgi file? I'm 
> still getting the forbidden error.... :-(
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/modwsgi 
> <https://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to