
Hello listers,i would wish to set up the above(subject) servers.Apache is on port 80,while zope is on port 8080.How do i make websites hosted on zope be reached by just typing the url...i.e without the port...alias? Plz help...

2009/11/3 Musya mike <mmycool@gmail.com>
Hello listers,i would wish to set up the above(subject) servers.Apache is on port 80,while zope is on port 8080.How do i make websites hosted on zope be reached by just typing the url...i.e without the port...alias? Plz help...
Add this to your httpd.conf and make sure apache has the proxy module enabled <Location /zope> ProxyPass http://127.0.0.1:8880/zope ProxyPassReverse http://127.0.0.1:8880/zope </Location> Then restart apache, http://127.0.0.1/zope should give you access to your /zope site or add the appropriate alias to your site on zope on the Location config above. ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ 'spɹɐƃǝɹ ıʞnɾu pıʌɐp

Thanks David. On Tue, Nov 3, 2009 at 12:26 PM, David Njuki <njukey@gmail.com> wrote:
2009/11/3 Musya mike <mmycool@gmail.com>
Hello listers,i would wish to set up the above(subject) servers.Apache is on port 80,while zope is on port 8080.How do i make websites hosted on zope be reached by just typing the url...i.e without the port...alias? Plz help...
Add this to your httpd.conf and make sure apache has the proxy module enabled
<Location /zope> ProxyPass http://127.0.0.1:8880/zope ProxyPassReverse http://127.0.0.1:8880/zope </Location>
Then restart apache, http://127.0.0.1/zope should give you access to your /zope site or add the appropriate alias to your site on zope on the Location config above.
˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ 'spɹɐƃǝɹ ıʞnɾu pıʌɐp
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

htaccess files would also do the same thing, something like Redirect 301 / http://localhost:8080/ will redirect all traffic from http://localhost/ (i.e. http://localhost:80/) to http://localhost:8080/ Using this, you don't need the proxy module and you also dont need to change the httpd.conf, but I still aint sure how the Google Bot looks upon htaccess redirects. On Tue, Nov 3, 2009 at 2:13 PM, Musya mike <mmycool@gmail.com> wrote:
Thanks David.
On Tue, Nov 3, 2009 at 12:26 PM, David Njuki <njukey@gmail.com> wrote:
2009/11/3 Musya mike <mmycool@gmail.com>
Hello listers,i would wish to set up the above(subject) servers.Apache is on port 80,while zope is on port 8080.How do i make websites hosted on zope be reached by just typing the url...i.e without the port...alias? Plz help...
Add this to your httpd.conf and make sure apache has the proxy module enabled
<Location /zope> ProxyPass http://127.0.0.1:8880/zope ProxyPassReverse http://127.0.0.1:8880/zope </Location>
Then restart apache, http://127.0.0.1/zope should give you access to your /zope site or add the appropriate alias to your site on zope on the Location config above.
˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ 'spɹɐƃǝɹ ıʞnɾu pıʌɐp
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

On Tue, Nov 3, 2009 at 5:41 PM, Peter Karunyu <pkarunyu@gmail.com> wrote:
htaccess files would also do the same thing, something like Redirect 301 / http://localhost:8080/ will redirect all traffic from http://localhost/ (i.e. http://localhost:80/) to http://localhost:8080/
How then does Apache know about the existence of a Zope site from the .htaccess file? Sorry, I've never ran a site on Zope before so I am only looking at the Apache side of things? I am a little bit lost. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube

Using htaccess, apache will not know about the existence of Zope because it does not need to. Infact, according to the Zope website, Zope can work without apache. On Tue, Nov 3, 2009 at 5:46 PM, Odhiambo Washington <odhiambo@gmail.com>wrote:
On Tue, Nov 3, 2009 at 5:41 PM, Peter Karunyu <pkarunyu@gmail.com> wrote:
htaccess files would also do the same thing, something like Redirect 301 / http://localhost:8080/ will redirect all traffic from http://localhost/ (i.e. http://localhost:80/) to http://localhost:8080/
How then does Apache know about the existence of a Zope site from the .htaccess file? Sorry, I've never ran a site on Zope before so I am only looking at the Apache side of things? I am a little bit lost.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

On Tue, Nov 3, 2009 at 5:59 PM, Peter Karunyu <pkarunyu@gmail.com> wrote:
Using htaccess, apache will not know about the existence of Zope because it does not need to. Infact, according to the Zope website, Zope can work without apache.
How do you point Apache to the Zope site? Maybe I did not phrase my question well. Do you create a VirtualHost? If you have a .htaccess in a directory, you still need to tell Apache that the said directory contains some content, ama nimechanganyikiwa? :) -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube

Once you tell apache to redirect to http://localhost:8080/, zope will take over since apache is only configured to listen to port 80. Therefore, apache does not need to know if there is or there isnt data in the said directory. No, you don't create a virtual host. If there is a htaccess file in that directory, apache will read it (unless you tell it to disregard htaccess files, which i am not sure hows its done :-) and effect those rules in that htaccess file before it does anything else. Come to think of it, apache only returns what it is asked for, if it does not find what it was asked for, it returns a 404 error On Tue, Nov 3, 2009 at 6:05 PM, Odhiambo Washington <odhiambo@gmail.com>wrote:
On Tue, Nov 3, 2009 at 5:59 PM, Peter Karunyu <pkarunyu@gmail.com> wrote:
Using htaccess, apache will not know about the existence of Zope because it does not need to. Infact, according to the Zope website, Zope can work without apache.
How do you point Apache to the Zope site? Maybe I did not phrase my question well. Do you create a VirtualHost? If you have a .htaccess in a directory, you still need to tell Apache that the said directory contains some content, ama nimechanganyikiwa? :)
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

Wash, just realized that I didn't answer your question :-) So, when you request http://localhost/, apache will go to the documentroot folder and look for any htaccess files, read them and "implement" any rules therein, after that, it will look for the file specified in directoryindex directive, e.g. index.html, index.php and return that. Therefore in this case, apache will just redirect to the zope URL. On Tue, Nov 3, 2009 at 5:59 PM, Peter Karunyu <pkarunyu@gmail.com> wrote:
Using htaccess, apache will not know about the existence of Zope because it does not need to. Infact, according to the Zope website, Zope can work without apache.
On Tue, Nov 3, 2009 at 5:46 PM, Odhiambo Washington <odhiambo@gmail.com>wrote:
On Tue, Nov 3, 2009 at 5:41 PM, Peter Karunyu <pkarunyu@gmail.com> wrote:
htaccess files would also do the same thing, something like Redirect 301 / http://localhost:8080/ will redirect all traffic from http://localhost/ (i.e. http://localhost:80/) to http://localhost:8080/
How then does Apache know about the existence of a Zope site from the .htaccess file? Sorry, I've never ran a site on Zope before so I am only looking at the Apache side of things? I am a little bit lost.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

On Tue, Nov 3, 2009 at 5:46 PM, Odhiambo Washington <odhiambo@gmail.com> wrote:
htaccess files would also do the same thing, something like Redirect 301 / http://localhost:8080/ will redirect all traffic from http://localhost/ (i.e. http://localhost:80/) to http://localhost:8080/
How then does Apache know about the existence of a Zope site from the .htaccess file? Sorry, I've never ran a site on Zope before so I am only looking at the Apache side of things? I am a little bit lost. --
Zope has its own virtual-host-manager, you could run it without apache ... You could also proxy zope behind apache virtual hosts ... To do the latter you enable mod_proxy and mod_rewrite on apache and use the zope virtual host base (which runs on port 10080 by default ..and use mod_rewrite rules with a apache virtual host to proxy all requests for the virtual-hosted-domain to the specific zope application...something like : <http://localhost:10080/VirtualHostBase/http/%{SERVER_NAME}:80/zope_app_folder_my_com/VirtualHostRoot/$1 [L,P]>
participants (5)
-
Ashok Hariharan
-
David Njuki
-
Musya mike
-
Odhiambo Washington
-
Peter Karunyu