When i moved the contents form vhosts.conf to httpd.conf it worked right away!! 2 questions.
1. If i put the contents back to vhosts.conf and create a new subdomain like 'nikos.superhost.gr' then i could only access my webpage as ' http://nikos.superhost.gr' ?Becouse i want to access it only as ' http://superhost.gr' nto with subdomain in front 2. I have 3 scripts inside 'public_html'. Is this the right way to configure to run them through mod_wsgi or there is a more general way so i dont have an each line for every script? WSGIDaemonProcess public_html user=nikos group=nikos processes=1 threads=5 WSGIScriptAlias / /home/nikos/public_html/app.py WSGIScriptAlias /clientele /home/nikos/public_html/clientele.py WSGIScriptAlias /downloads /home/nikos/public_html/downloads.py <Directory /home/nikos/public_html> WSGIProcessGroup public_html WSGIApplicationGroup %{GLOBAL} WSGIScriptReloading On AllowOverride None Require all granted </Directory> Στις Πέμ, 6 Σεπ 2018 στις 2:38 π.μ., ο/η Graham Dumpleton < [email protected]> έγραψε: > 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 > > 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]. > 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. > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "modwsgi" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/modwsgi/4sM5QIitIyI/unsubscribe. > To unsubscribe from this group and all its topics, 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. > -- 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.
