VirtualHost 403 Forbidden. Help!!
Hi, I read every doc I found. But the server reports always 403 on konfiguring an APache VirtualHost on my Zope Instance on the same machine. Here my sniplet from apache2.conf (also known as httpd.conf) <VirtualHost journal.homelinux.net:80> ServerName journal.homelinux.net ServerAdmin myemail@yahoo.com RewriteEngine On RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/journal.homelinux.net:80/VirtualH... [P,L] ErrorLog /var/log/apache2/journal-error_log TransferLog /var/log/apache2/journal-access_log </VirtualHost> I tryed many other variants to point to the VH Monster. The result is always: Forbidden You don't have permission to access / on this server. What am I doing wrong????????????????????????????????? thanks, Ferhat __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
File and folder permissions? On 9/21/06, Ferhat Ayaz <ferhatayaz@yahoo.com> wrote:
Hi,
I read every doc I found. But the server reports always 403 on konfiguring an APache VirtualHost on my Zope Instance on the same machine. Here my sniplet from apache2.conf (also known as httpd.conf)
<VirtualHost journal.homelinux.net:80> ServerName journal.homelinux.net ServerAdmin myemail@yahoo.com RewriteEngine On RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/journal.homelinux.net:80/VirtualH... [P,L]
ErrorLog /var/log/apache2/journal-error_log TransferLog /var/log/apache2/journal-access_log </VirtualHost>
I tryed many other variants to point to the VH Monster. The result is always:
Forbidden
You don't have permission to access / on this server.
What am I doing wrong?????????????????????????????????
thanks, Ferhat
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
----- Original Message ----- From: "Ferhat Ayaz" <ferhatayaz@yahoo.com> To: <zope@zope.org> Sent: Thursday, September 21, 2006 10:20 AM Subject: [Zope] VirtualHost 403 Forbidden. Help!!
Hi,
I read every doc I found. But the server reports always 403 on konfiguring an APache VirtualHost on my Zope Instance on the same machine. Here my sniplet from apache2.conf (also known as httpd.conf)
<VirtualHost journal.homelinux.net:80> ServerName journal.homelinux.net ServerAdmin myemail@yahoo.com RewriteEngine On RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/journal.homelinux.net:80/VirtualH... [P,L]
ErrorLog /var/log/apache2/journal-error_log TransferLog /var/log/apache2/journal-access_log </VirtualHost>
I tryed many other variants to point to the VH Monster. The result is always:
Forbidden
You don't have permission to access / on this server.
What am I doing wrong?????????????????????????????????
Is your nameserver configured to allow access to journal.homelinux.net? (look at /etc/named.conf and the associated db entry in /etc/named) Can you get to a simple directory on your server? (ie. change the rewrite rule so that it points at a directory on your server - create a simple index.html file in the associated htdocs subdirectory) Jonathan
----- Original Message ----- From: "Jonathan" <dev101@magma.ca> To: "Ferhat Ayaz" <ferhatayaz@yahoo.com>; <zope@zope.org> Sent: Thursday, September 21, 2006 10:34 AM Subject: Re: [Zope] VirtualHost 403 Forbidden. Help!!
----- Original Message ----- From: "Ferhat Ayaz" <ferhatayaz@yahoo.com> To: <zope@zope.org> Sent: Thursday, September 21, 2006 10:20 AM Subject: [Zope] VirtualHost 403 Forbidden. Help!!
Hi,
I read every doc I found. But the server reports always 403 on konfiguring an APache VirtualHost on my Zope Instance on the same machine. Here my sniplet from apache2.conf (also known as httpd.conf)
<VirtualHost journal.homelinux.net:80> ServerName journal.homelinux.net ServerAdmin myemail@yahoo.com RewriteEngine On RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/journal.homelinux.net:80/VirtualH... [P,L]
ErrorLog /var/log/apache2/journal-error_log TransferLog /var/log/apache2/journal-access_log </VirtualHost>
I tryed many other variants to point to the VH Monster. The result is always:
Forbidden
You don't have permission to access / on this server.
What am I doing wrong?????????????????????????????????
Is your nameserver configured to allow access to journal.homelinux.net? (look at /etc/named.conf and the associated db entry in /etc/named)
Can you get to a simple directory on your server? (ie. change the rewrite rule so that it points at a directory on your server - create a simple index.html file in the associated htdocs subdirectory)
I take this back, the above would be for a 404 error, probably not your 403 error. Have you check your apache and zope logs? Jonathan
In the apache logs I found this: [Thu Sep 21 16:15:58 2006] [error] [client 141.12.190.15] client denied by server configuration: proxy:http://localhost:8080/VirtualHostBase/http/journal.homelinux.net:80/homelinu... And this is my proxy conf <IfModule mod_proxy.c> #turning ProxyRequests on and allowing proxying from all may allow #spammers to use your proxy to send email. ProxyRequests Off <Proxy *> Order deny,allow Deny from all #Allow from .your_domain.com </Proxy> # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block ProxyVia On # To enable the cache as well, edit and uncomment the following lines: # (no cacheing without CacheRoot) CacheRoot "/var/cache/apache2/proxy" CacheSize 5 CacheGcInterval 4 CacheMaxExpire 24 CacheLastModifiedFactor 0.1 CacheDefaultExpire 1 # Again, you probably should change this. #NoCache a_domain.com another_domain.edu joes.garage_sale.com </IfModule> I know...Sorry that this is not a Zope issue directly. But I think I can find here much more experience with apache and Zope VirtualHosting as on other lists. Greets, Ferhat --- Jonathan <dev101@magma.ca> wrote:
----- Original Message ----- From: "Jonathan" <dev101@magma.ca> To: "Ferhat Ayaz" <ferhatayaz@yahoo.com>; <zope@zope.org> Sent: Thursday, September 21, 2006 10:34 AM Subject: Re: [Zope] VirtualHost 403 Forbidden. Help!!
----- Original Message ----- From: "Ferhat Ayaz" <ferhatayaz@yahoo.com> To: <zope@zope.org> Sent: Thursday, September 21, 2006 10:20 AM Subject: [Zope] VirtualHost 403 Forbidden. Help!!
Hi,
I read every doc I found. But the server reports always 403 on konfiguring an APache VirtualHost
on my
Zope Instance on the same machine. Here my sniplet from apache2.conf (also known as httpd.conf)
<VirtualHost journal.homelinux.net:80> ServerName journal.homelinux.net ServerAdmin myemail@yahoo.com RewriteEngine On RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/journal.homelinux.net:80/VirtualH...
[P,L]
ErrorLog /var/log/apache2/journal-error_log TransferLog /var/log/apache2/journal-access_log </VirtualHost>
I tryed many other variants to point to the VH Monster. The result is always:
Forbidden
You don't have permission to access / on this server.
What am I doing wrong?????????????????????????????????
Is your nameserver configured to allow access to journal.homelinux.net? (look at /etc/named.conf and the associated db entry in /etc/named)
Can you get to a simple directory on your server? (ie. change the rewrite rule so that it points at a directory on your server - create a simple index.html file in the associated htdocs subdirectory)
I take this back, the above would be for a 404 error, probably not your 403 error.
Have you check your apache and zope logs?
Jonathan
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
<IfModule mod_proxy.c>
#turning ProxyRequests on and allowing proxying from all may allow #spammers to use your proxy to send email.
ProxyRequests Off
<Proxy *> Order deny,allow Deny from all #Allow from .your_domain.com </Proxy>
Forgive me if I'm being dense, but doesn't 'deny from all' imply that no proxy requests will be allowed? Don't you then need to uncomment the 'Allow' statement and put your server name there, so that proxy requests from your own server will be allowed? Cris Ewing
Turn off ProxyVia, and leave everything to default, especially <Proxy *> Order deny,allow Deny from all #Allow from .your_domain.com </Proxy> You don't want everyone to use your server as a proxy. That can be bad. On 9/21/06, Ferhat Ayaz <ferhatayaz@yahoo.com> wrote:
In the apache logs I found this:
[Thu Sep 21 16:15:58 2006] [error] [client 141.12.190.15] client denied by server configuration: proxy:http://localhost:8080/VirtualHostBase/http/journal.homelinux.net:80/homelinu...
And this is my proxy conf
<IfModule mod_proxy.c>
#turning ProxyRequests on and allowing proxying from all may allow #spammers to use your proxy to send email.
ProxyRequests Off
<Proxy *> Order deny,allow Deny from all #Allow from .your_domain.com </Proxy>
# Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block
ProxyVia On
# To enable the cache as well, edit and uncomment the following lines: # (no cacheing without CacheRoot)
CacheRoot "/var/cache/apache2/proxy" CacheSize 5 CacheGcInterval 4 CacheMaxExpire 24 CacheLastModifiedFactor 0.1 CacheDefaultExpire 1 # Again, you probably should change this. #NoCache a_domain.com another_domain.edu joes.garage_sale.com
</IfModule>
I know...Sorry that this is not a Zope issue directly. But I think I can find here much more experience with apache and Zope VirtualHosting as on other lists.
Greets, Ferhat
--- Jonathan <dev101@magma.ca> wrote:
----- Original Message ----- From: "Jonathan" <dev101@magma.ca> To: "Ferhat Ayaz" <ferhatayaz@yahoo.com>; <zope@zope.org> Sent: Thursday, September 21, 2006 10:34 AM Subject: Re: [Zope] VirtualHost 403 Forbidden. Help!!
----- Original Message ----- From: "Ferhat Ayaz" <ferhatayaz@yahoo.com> To: <zope@zope.org> Sent: Thursday, September 21, 2006 10:20 AM Subject: [Zope] VirtualHost 403 Forbidden. Help!!
Hi,
I read every doc I found. But the server reports always 403 on konfiguring an APache VirtualHost
on my
Zope Instance on the same machine. Here my sniplet from apache2.conf (also known as httpd.conf)
<VirtualHost journal.homelinux.net:80> ServerName journal.homelinux.net ServerAdmin myemail@yahoo.com RewriteEngine On RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/journal.homelinux.net:80/VirtualH...
[P,L]
ErrorLog /var/log/apache2/journal-error_log TransferLog /var/log/apache2/journal-access_log </VirtualHost>
I tryed many other variants to point to the VH Monster. The result is always:
Forbidden
You don't have permission to access / on this server.
What am I doing wrong?????????????????????????????????
Is your nameserver configured to allow access to journal.homelinux.net? (look at /etc/named.conf and the associated db entry in /etc/named)
Can you get to a simple directory on your server? (ie. change the rewrite rule so that it points at a directory on your server - create a simple index.html file in the associated htdocs subdirectory)
I take this back, the above would be for a 404 error, probably not your 403 error.
Have you check your apache and zope logs?
Jonathan
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
I run the apache and zope server on the same machine. Turning 'Off' ProxyVia and Deny from all produces the same problem: 403 Forbidden. I don't understand, why the proxy deny my remote IP. I think the apache server on the localhost 127.0.0.1 should call the proxy and I do my request to apache. Or is this wrong? Thanks, Ferhat --- KE Liew <ke.liew@gmail.com> wrote:
Turn off ProxyVia, and leave everything to default, especially
<Proxy *> Order deny,allow Deny from all #Allow from .your_domain.com </Proxy>
You don't want everyone to use your server as a proxy. That can be bad.
On 9/21/06, Ferhat Ayaz <ferhatayaz@yahoo.com> wrote:
In the apache logs I found this:
[Thu Sep 21 16:15:58 2006] [error] [client 141.12.190.15] client denied by server configuration:
proxy:http://localhost:8080/VirtualHostBase/http/journal.homelinux.net:80/homelinu...
And this is my proxy conf
<IfModule mod_proxy.c>
#turning ProxyRequests on and allowing proxying from all may allow #spammers to use your proxy to send email.
ProxyRequests Off
<Proxy *> Order deny,allow Deny from all #Allow from .your_domain.com </Proxy>
# Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block
ProxyVia On
# To enable the cache as well, edit and uncomment the following lines: # (no cacheing without CacheRoot)
CacheRoot "/var/cache/apache2/proxy" CacheSize 5 CacheGcInterval 4 CacheMaxExpire 24 CacheLastModifiedFactor 0.1 CacheDefaultExpire 1 # Again, you probably should change this. #NoCache a_domain.com another_domain.edu joes.garage_sale.com
</IfModule>
I know...Sorry that this is not a Zope issue
directly.
But I think I can find here much more experience with apache and Zope VirtualHosting as on other lists.
Greets, Ferhat
--- Jonathan <dev101@magma.ca> wrote:
----- Original Message ----- From: "Jonathan" <dev101@magma.ca> To: "Ferhat Ayaz" <ferhatayaz@yahoo.com>; <zope@zope.org> Sent: Thursday, September 21, 2006 10:34 AM Subject: Re: [Zope] VirtualHost 403 Forbidden. Help!!
----- Original Message ----- From: "Ferhat Ayaz" <ferhatayaz@yahoo.com> To: <zope@zope.org> Sent: Thursday, September 21, 2006 10:20 AM Subject: [Zope] VirtualHost 403 Forbidden.
Help!!
Hi,
I read every doc I found. But the server
reports
always 403 on konfiguring an APache VirtualHost on my Zope Instance on the same machine. Here my sniplet from apache2.conf (also known as httpd.conf)
<VirtualHost journal.homelinux.net:80> ServerName journal.homelinux.net ServerAdmin myemail@yahoo.com RewriteEngine On RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/journal.homelinux.net:80/VirtualH...
[P,L]
ErrorLog /var/log/apache2/journal-error_log TransferLog /var/log/apache2/journal-access_log </VirtualHost>
I tryed many other variants to point to the VH Monster. The result is always:
Forbidden
You don't have permission to access / on this server.
What am I doing wrong?????????????????????????????????
Is your nameserver configured to allow access to journal.homelinux.net? (look at /etc/named.conf and the associated db entry in /etc/named)
Can you get to a simple directory on your server? (ie. change the rewrite rule so that it points at a directory on your server - create a simple index.html file in the associated htdocs subdirectory)
I take this back, the above would be for a 404 error, probably not your 403 error.
Have you check your apache and zope logs?
Jonathan
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
----- Original Message ----- From: "Ferhat Ayaz" <ferhatayaz@yahoo.com> To: <zope@zope.org> Sent: Thursday, September 21, 2006 12:54 PM Subject: Re: [Zope] VirtualHost 403 Forbidden. Help!!
I run the apache and zope server on the same machine. Turning 'Off' ProxyVia and Deny from all produces the same problem: 403 Forbidden. I don't understand, why the proxy deny my remote IP. I think the apache server on the localhost 127.0.0.1 should call the proxy and I do my request to apache. Or is this wrong?
Following is an extract from our httpd.conf file: # # Proxy Server directives. Uncomment the following lines to # enable the proxy server: # #<IfModule mod_proxy.c> #ProxyRequests On # #<Proxy *> # Order deny,allow # Deny from all # Allow from .your-domain.com #</Proxy> # # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block # #ProxyVia On # # To enable the cache as well, edit and uncomment the following lines: # (no cacheing without CacheRoot) # #CacheRoot "/etc/httpd/proxy" #CacheSize 5 #CacheGcInterval 4 #CacheMaxExpire 24 #CacheLastModifiedFactor 0.1 #CacheDefaultExpire 1 #NoCache a-domain.com another-domain.edu joes.garage-sale.com #</IfModule> # End of proxy directives. As you can see all of the proxy directives have been 'disabled'. Here are a couple of examples from the virtual host configuration section of httpd.conf: RewriteEngine on RewriteRule manage - [F] RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/www.shopwiser.com:80/sw/VirtualHo... [L,P] <VirtualHost www.frapped.com:80> ServerName www.frapped.com ServerAdmin root@shopwiser.com ErrorLog logs/frapped_error_log CustomLog logs/frapped_access_log common RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/www.frapped.com:80/Wet/VirtualHos... [L,P] </VirtualHost> NameVirtualHost 206.191.24.30 <VirtualHost 206.191.24.30:80> ServerName www.cozumo.net ErrorLog logs/cozumo_error_log CustomLog logs/cozumo_access_log common RewriteEngine on RewriteRule ^/(.*) http://localhost:8081/VirtualHostBase/http/www.cozumo.net:80/Coz/CurrentVers... [L,P] </VirtualHost> This setup works for us! Jonathan
Disabling all proxy options worked for me too. I'm not sure if this will disable also all proxy restrictions. But I think I can live with this configuration for a while. Thanks. --- Jonathan <dev101@magma.ca> wrote:
----- Original Message ----- From: "Ferhat Ayaz" <ferhatayaz@yahoo.com> To: <zope@zope.org> Sent: Thursday, September 21, 2006 12:54 PM Subject: Re: [Zope] VirtualHost 403 Forbidden. Help!!
I run the apache and zope server on the same machine. Turning 'Off' ProxyVia and Deny from all produces the same problem: 403 Forbidden. I don't understand, why the proxy deny my remote IP. I think the apache server on the localhost 127.0.0.1 should call the proxy and I do my request to apache. Or is this wrong?
Following is an extract from our httpd.conf file:
# # Proxy Server directives. Uncomment the following lines to # enable the proxy server: # #<IfModule mod_proxy.c> #ProxyRequests On # #<Proxy *> # Order deny,allow # Deny from all # Allow from .your-domain.com #</Proxy> # # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block # #ProxyVia On # # To enable the cache as well, edit and uncomment the following lines: # (no cacheing without CacheRoot) # #CacheRoot "/etc/httpd/proxy" #CacheSize 5 #CacheGcInterval 4 #CacheMaxExpire 24 #CacheLastModifiedFactor 0.1 #CacheDefaultExpire 1 #NoCache a-domain.com another-domain.edu joes.garage-sale.com #</IfModule> # End of proxy directives.
As you can see all of the proxy directives have been 'disabled'. Here are a couple of examples from the virtual host configuration section of httpd.conf:
RewriteEngine on RewriteRule manage - [F] RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/www.shopwiser.com:80/sw/VirtualHo...
[L,P]
<VirtualHost www.frapped.com:80> ServerName www.frapped.com ServerAdmin root@shopwiser.com ErrorLog logs/frapped_error_log CustomLog logs/frapped_access_log common RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/www.frapped.com:80/Wet/VirtualHos...
[L,P] </VirtualHost>
NameVirtualHost 206.191.24.30 <VirtualHost 206.191.24.30:80> ServerName www.cozumo.net ErrorLog logs/cozumo_error_log CustomLog logs/cozumo_access_log common RewriteEngine on RewriteRule ^/(.*)
http://localhost:8081/VirtualHostBase/http/www.cozumo.net:80/Coz/CurrentVers...
[L,P] </VirtualHost>
This setup works for us!
Jonathan
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
----- Original Message ----- From: "Ferhat Ayaz" <ferhatayaz@yahoo.com> To: "Jonathan" <dev101@magma.ca>; <zope@zope.org> Sent: Thursday, September 21, 2006 1:13 PM Subject: Re: [Zope] VirtualHost 403 Forbidden. Help!!
Disabling all proxy options worked for me too. I'm not sure if this will disable also all proxy restrictions.
But I think I can live with this configuration for a while. Thanks.
According to the apache docs the default for proxy passing is 'off' (ie. proxying is not enabled), so if your config file does not explicitly turn proxying 'on' you should be ok! Jonathan
On 9/22/06, Dieter Maurer <dieter@handshake.de> wrote:
KE Liew wrote at 2006-9-21 18:32 +0200:
Turn off ProxyVia
Why should he turn off "ProxyVia"?
It only tells Apache to forward the IP address of its client in a special request header...
Ugh. Good question. I meant ProxyRequest. :/
I'm now able to access the server. with allowing access from all IPs. But is this the regular way to do VirtualHosting with Zope?? Here the solution (!?) <Proxy *> Allow from all </Proxy> --- Jonathan <dev101@magma.ca> wrote:
----- Original Message ----- From: "Jonathan" <dev101@magma.ca> To: "Ferhat Ayaz" <ferhatayaz@yahoo.com>; <zope@zope.org> Sent: Thursday, September 21, 2006 10:34 AM Subject: Re: [Zope] VirtualHost 403 Forbidden. Help!!
----- Original Message ----- From: "Ferhat Ayaz" <ferhatayaz@yahoo.com> To: <zope@zope.org> Sent: Thursday, September 21, 2006 10:20 AM Subject: [Zope] VirtualHost 403 Forbidden. Help!!
Hi,
I read every doc I found. But the server reports always 403 on konfiguring an APache VirtualHost
on my
Zope Instance on the same machine. Here my sniplet from apache2.conf (also known as httpd.conf)
<VirtualHost journal.homelinux.net:80> ServerName journal.homelinux.net ServerAdmin myemail@yahoo.com RewriteEngine On RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/journal.homelinux.net:80/VirtualH...
[P,L]
ErrorLog /var/log/apache2/journal-error_log TransferLog /var/log/apache2/journal-access_log </VirtualHost>
I tryed many other variants to point to the VH Monster. The result is always:
Forbidden
You don't have permission to access / on this server.
What am I doing wrong?????????????????????????????????
Is your nameserver configured to allow access to journal.homelinux.net? (look at /etc/named.conf and the associated db entry in /etc/named)
Can you get to a simple directory on your server? (ie. change the rewrite rule so that it points at a directory on your server - create a simple index.html file in the associated htdocs subdirectory)
I take this back, the above would be for a 404 error, probably not your 403 error.
Have you check your apache and zope logs?
Jonathan
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
----- Original Message ----- From: "Ferhat Ayaz" <ferhatayaz@yahoo.com> To: <zope@zope.org> Sent: Thursday, September 21, 2006 10:56 AM Subject: Re: [Zope] VirtualHost 403 Forbidden. Help!!
I'm now able to access the server. with allowing access from all IPs. But is this the regular way to do VirtualHosting with Zope?? Here the solution (!?)
<Proxy *> Allow from all </Proxy>
Do you have apache running on one box and zope running on another box (ie. and using mod_proxy to forward proxy requests from the front-end box to the target server (zope) box? If you have apache and zope running on the same box i don't think you need mod_proxy. Jonathan
--- Jonathan <dev101@magma.ca> wrote:
----- Original Message ----- From: "Jonathan" <dev101@magma.ca> To: "Ferhat Ayaz" <ferhatayaz@yahoo.com>; <zope@zope.org> Sent: Thursday, September 21, 2006 10:34 AM Subject: Re: [Zope] VirtualHost 403 Forbidden. Help!!
----- Original Message ----- From: "Ferhat Ayaz" <ferhatayaz@yahoo.com> To: <zope@zope.org> Sent: Thursday, September 21, 2006 10:20 AM Subject: [Zope] VirtualHost 403 Forbidden. Help!!
Hi,
I read every doc I found. But the server reports always 403 on konfiguring an APache VirtualHost
on my
Zope Instance on the same machine. Here my sniplet from apache2.conf (also known as httpd.conf)
<VirtualHost journal.homelinux.net:80> ServerName journal.homelinux.net ServerAdmin myemail@yahoo.com RewriteEngine On RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/journal.homelinux.net:80/VirtualH...
[P,L]
ErrorLog /var/log/apache2/journal-error_log TransferLog /var/log/apache2/journal-access_log </VirtualHost>
I tryed many other variants to point to the VH Monster. The result is always:
Forbidden
You don't have permission to access / on this server.
What am I doing wrong?????????????????????????????????
Is your nameserver configured to allow access to journal.homelinux.net? (look at /etc/named.conf and the associated db entry in /etc/named)
Can you get to a simple directory on your server? (ie. change the rewrite rule so that it points at a directory on your server - create a simple index.html file in the associated htdocs subdirectory)
I take this back, the above would be for a 404 error, probably not your 403 error.
Have you check your apache and zope logs?
Jonathan
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Ferhat Ayaz <ferhatayaz@...> writes:
I'm now able to access the server. with allowing access from all IPs. But is this the regular way to do VirtualHosting with Zope??
Yes, since you do want everyone in the world to access your site. Of course, you do not want to have an open proxy, so ProxyRequests must be switched "off" with this setup (which should be default...). Most people use Apache (sometimes in combination with Squid-Proxy) as a Frontend for Zope Servers, so this is the regular way for Production Environments. Please take the time and read http://httpd.apache.org/docs/2.0/mod/mod_proxy.html to figure out the basics.
Here the solution (!?)
<Proxy *> Allow from all </Proxy>
In your previous Setup you disallowed anone to access your Proxy, that's why you got all the 403s. Btw that was an Apache Error Message and hat nothing to do with Zope. Kind Regards Maik
Ferhat Ayaz wrote:
I'm now able to access the server. with allowing access from all IPs. But is this the regular way to do VirtualHosting with Zope?? Here the solution (!?)
<Proxy *> Allow from all </Proxy>
You really better asking these questions on #apache on irc.freenode.net as they have nothing to do with Zope. cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (7)
-
Chris Withers -
cristopher pierson ewing -
Dieter Maurer -
Ferhat Ayaz -
Jonathan -
KE Liew -
Maik Ihde