Is 'phpmyadmin' a directory under DocumentRoot, a 'phpmyadmin.php' file, or is actually in 'index.php'?
What do you get for 'ls -las' in the DocumentRoot directory? > On 9 Sep 2018, at 5:37 pm, Νίκος @ SuperHost <[email protected]> > wrote: > > Under DocumentRoot i have my 3 wsgi apps and the /phpmyadmin web application > whcih is shadowed by my Python '/' web app. > One solution i came up with last night before i see your post was to > > WSGIDaemonProcess downloads user=nikos group=nikos > home=/home/nikos/public_html/ > WSGIScriptAlias /downloads /home/nikos/public_html/downloads.py > process-group=downloads application-group=%{GLOBAL} > > WSGIDaemonProcess clientele user=nikos group=nikos > home=/home/nikos/public_html/ > WSGIScriptAlias /clientele /home/nikos/public_html/clientele.py > process-group=clientele application-group=%{GLOBAL} > > WSGIDaemonProcess app user=nikos group=nikos home=/home/nikos/public_html/ > WSGIScriptAlias /app /home/nikos/public_html/app.py process-group=app > application-group=%{GLOBAL} > So to make wsgi listen for URL routes from '/app' and then had an index.html > redirect there. > Althogh it wokrs i don't like this approache with redirection. > After reading the link iam trying to > > <Directory /home/nikos/public_html> > RewriteEngine On > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule ^(.*)$ /superhost.gr/$1 <http://superhost.gr/$1> [QSA,PT,L] > > Require all granted > </Directory> > > > WSGIDaemonProcess downloads user=nikos group=nikos > home=/home/nikos/public_html/ > WSGIScriptAlias /downloads /home/nikos/public_html/downloads.py > process-group=downloads application-group=%{GLOBAL} > > WSGIDaemonProcess clientele user=nikos group=nikos > home=/home/nikos/public_html/ > WSGIScriptAlias /clientele /home/nikos/public_html/clientele.py > process-group=clientele application-group=%{GLOBAL} > > WSGIDaemonProcess app user=nikos group=nikos home=/home/nikos/public_html/ > WSGIScriptAlias / /home/nikos/public_html/app.py process-group=app > application-group=%{GLOBAL} > > The wsgi apps load but NOT /phpmyadmin. > > Στις Κυρ, 9 Σεπ 2018 στις 2:02 π.μ., ο/η Graham Dumpleton > <[email protected] <mailto:[email protected]>> έγραψε: > It gets fiddly depending on what else you have under DocumentRoot directory. > > Show me the current VirtualHost definition and explain what you have under > the directory referenced by DocumentRoot directory. > > Also read: > > http://blog.dscpl.com.au/2014/09/hosting-php-web-applications-in.html > <http://blog.dscpl.com.au/2014/09/hosting-php-web-applications-in.html> > > for some background about the issue, but don't rush to try anything based on > that just yet. > >> On 9 Sep 2018, at 8:49 am, Νίκος @ SuperHost <[email protected] >> <mailto:[email protected]>> wrote: >> >> Yes indeed, even named httpd-vhosts.conf >> >> I noticed that wehn app.py runs in '/' then other files within my >> public_html wont load like http://superhost.gr/phpmyadmin >> <http://superhost.gr/phpmyadmin>. >> >> WSGI is contrlling the whole folder? And if so how can i still run >> http://superhost.gr/phpmyadmin <http://superhost.gr/phpmyadmin> that is >> placed in /home/public_html like my other 3 wsgi apps? >> >> Στις Κυρ, 9 Σεπ 2018 στις 12:38 π.μ., ο/η Graham Dumpleton >> <[email protected] <mailto:[email protected]>> έγραψε: >> As I already explained, you can use the Include directive to have Apache >> read config from another file. You can't in this case have it read a >> separate VirtualHost. You would need to have in the separate file, just the >> lines you want to include in the existing VirtualHost, and then have the >> Include directive inside of the main VirtualHost in main config if you want >> to leave it there. >> >> https://httpd.apache.org/docs/current/mod/core.html#include >> <https://httpd.apache.org/docs/current/mod/core.html#include> >> >>> On 8 Sep 2018, at 7:57 am, Νίκος @ SuperHost <[email protected] >>> <mailto:[email protected]>> wrote: >>> >>> Thanks Graham for everything. >>> >>> I feel like an idiot. Only 1 hour before your post i realized that i was >>> using the wrong URL.\ >>> I didnt seee it because up until now i was writing cgi apps without flask, >>> not wsgi with flask. >>> >>> One last thing. >>> I want to move the directives from httpd.conf to httpd-vhosts.conf but >>> without using a subdomain, can i just tell apache to look there for extra >>> config for superhost.gr:80 <http://superhost.gr/> >>> I want this file httpdp-vhosts.cong to store the extra info for >>> superhost.gr <http://superhost.gr/> >>> Στις Παρ, 7 Σεπ 2018 στις 11:59 μ.μ., ο/η Graham Dumpleton >>> <[email protected] <mailto:[email protected]>> έγραψε: >>> >>> >>>> On 8 Sep 2018, at 2:48 am, Νίκος Βέργος <[email protected] >>>> <mailto:[email protected]>> wrote: >>>> >>>> i have this mod_wsgi configuration but onlly web.py runs normally my other >>>> 2 separate wsgi apps give a NOT found when they are tried to run through >>>> the browser. >>>> >>>> <Directory /home/nikos/public_html> >>>> AllowOverride None >>>> Require all granted >>>> </Directory> >>>> >>>> WSGIDaemonProcess downloads user=nikos group=nikos threads=5 >>>> home=/home/nikos/public_html >>>> WSGIScriptAlias /downloads /home/nikos/public_html/downloads.py >>>> process-group=downloads application-group=%{GLOBAL} >>>> >>>> WSGIDaemonProcess clientele user=nikos group=nikos threads=5 >>>> home=/home/nikos/public_html >>>> WSGIScriptAlias /clientele /home/nikos/public_html/clientele.py >>>> process-group=clientele application-group=%{GLOBAL} >>>> >>>> WSGIDaemonProcess app user=nikos group=nikos threads=5 >>>> home=/home/nikos/public_html >>>> WSGIScriptAlias / /home/nikos/public_html/app.py process-group=app >>>> application-group=%{GLOBAL} >>>> >>>> for example if i try: >>>> http://superhost.gr/clientele.py <http://superhost.gr/clientele.py> >>> You are using the wrong URL. >>> >>> Because you have: >>> >>> WSGIScriptAlias /clientele /home/nikos/public_html/clientele.py >>> process-group=clientele application-group=%{GLOBAL} >>> >>> The first argument to WSGIScriptAlias of '/clientele' says that is the path >>> you should use: >>> >>> http://superhost.gr/clientele <http://superhost.gr/clientele> >>> >>> If you haven't already, I would suggest perhaps read through the mod_wsgi >>> documentation. >>> >>> https://modwsgi.readthedocs.io/en/develop/user-guides.html >>> <https://modwsgi.readthedocs.io/en/develop/user-guides.html> >>> >>> https://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIScriptAlias.html >>> >>> <https://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIScriptAlias.html> >>> >>> to get a better understand of how things work. >>> >>> >>>> >>>> Not Found >>>> The requested URL was not found on the server. If you entered the URL >>>> manually please check your spelling and try again. >>>> >>>> -- >>>> 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 a topic in the >>> Google Groups "modwsgi" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/modwsgi/dAAP1mz_ekI/unsubscribe >>> <https://groups.google.com/d/topic/modwsgi/dAAP1mz_ekI/unsubscribe>. >>> To unsubscribe from this group and all its topics, 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] >>> <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 a topic in the >> Google Groups "modwsgi" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/modwsgi/dAAP1mz_ekI/unsubscribe >> <https://groups.google.com/d/topic/modwsgi/dAAP1mz_ekI/unsubscribe>. >> To unsubscribe from this group and all its topics, 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] >> <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 a topic in the Google > Groups "modwsgi" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/modwsgi/dAAP1mz_ekI/unsubscribe > <https://groups.google.com/d/topic/modwsgi/dAAP1mz_ekI/unsubscribe>. > To unsubscribe from this group and all its topics, 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] > <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.
